File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and Other Java EE Technologies and the fly likes Need to Parse XML Message from my Message Driven Bean  Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and Other Java EE Technologies
Reply Bookmark "Need to Parse XML Message from my Message Driven Bean  " Watch "Need to Parse XML Message from my Message Driven Bean  " New topic
Author

Need to Parse XML Message from my Message Driven Bean

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2229



Hi

I am using Message Driven Beans for listening to a Queue .

I am getting a Big XML file from my Queue in form of a TextMessage .

Now my task is to read / parse the XML Message .

Please tell me what is the apprpiate parsing technique i need to use (Should i use SAX or DOM )

Please share your ideas .

Thank you .


Save India From Corruption - Anna Hazare.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 23178

What do you think? Hint: the size of the message is an important criteria.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Certs: SCEA Part 1, Part 2 & 3 & Core Spring 3
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2229

Thanks ,

the XML file is already present in the form of an String message .(An XML file writte using Xstream API) .

the lines are nearly about 80 lines .
So suggest me a good approach .
 
 
subject: Need to Parse XML Message from my Message Driven Bean
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture