1
我是新来的JMS和MQ的。我想知道如何通过JMS和WebSphere MQ的J2EE application.Can有人发送和接收XML文件告诉我同样的分步解决方案与代码示例提前如何发送和通过JMS和WebSphere MQ接收XML文件中的J2EE应用程序
感谢。
我是新来的JMS和MQ的。我想知道如何通过JMS和WebSphere MQ的J2EE application.Can有人发送和接收XML文件告诉我同样的分步解决方案与代码示例提前如何发送和通过JMS和WebSphere MQ接收XML文件中的J2EE应用程序
感谢。
非常接近这个问题:Send and Receive XML formatted text to IBM WebSphere MQ using XMS除了编程语言,即在.NET。
XML是文本,所以你可以使用JMS的TextMessage发送/接收XML有效载荷。示例代码段是在这里:
connection = cf.createConnection();
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
destination = session.createQueue(destinationName);
producer = session.createProducer(destination);
TextMessage message = session.createTextMessage(xmlPayload);
producer.send(message);