2015-09-28 59 views

回答

0

非常接近这个问题: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);