[CXF] Server与Client实现方式四:JMS
?
四、请求服务显然和创建服务过程一样,需要配置client的jms信息,以将请求消息发送到jms服务器上,供服务端消费:
??
然后在代码里:ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/org/talend/esb/liugang/jms/client.xml");OrderProcess bean = context.getBean("orderProcessClient", OrderProcess.class);Order order = new Order();order.setId("hello");String processOrder = bean.processOrder(order);System.out.println(processOrder);