简体   繁体   中英

How to Receive JMS mesage from Queue and transform to SOAP using java

I have written some code for getting message and transforming it into SOAP message.But here the compiler is not executing the next line of SOAPMessage soapMessage = MessageTransformer.SOAPMessageFromJMSMessage(bytesMessage, messageFactory);

Can anyone let me know where i am wrong or what need to be done for transform the JMS message to SOAP.

Why would you want to create a soap message manually if you're receiving a jms message?

I would reconsider your architecture and would do a SOAP over JMS implementation even if this is not my favorite design pattern :

https://dzone.com/articles/apache-cxf-23-implementation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM