File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes XML payload & JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "XML payload & JMS" Watch "XML payload & JMS" New topic

XML payload & JMS

Mahesh Asrani

Joined: Mar 03, 2005
Posts: 15
Hi All

Hope I can explain my problem clearly.

I have to post a XML payload to a JMS Topic.

This will be done from one of our POJO class after it performs some business validation.
In this class I have the content in a Java Object which has a big Object tree.
I have to convert this Java Object into XML.

My question to you all is

Should i perform this Java Object to XML conversion logic in the POJO class itself. Because the Java object can vary depending upon situation to situation.

As the JMS Topic takes in a XML content
I would want to know what would be the most effecient way of converting this Java object into XML & sending the XML to the JMS topic.

Kindly respond

I agree. Here's the link:
subject: XML payload & JMS
It's not a secret anymore!