permaculture playing cards*
The moose likes EJB and other Java EE Technologies and the fly likes Send XML document using JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Send XML document using JMS" Watch "Send XML document using JMS" New topic
Author

Send XML document using JMS

kavitha vasu
Ranch Hand

Joined: Feb 22, 2007
Posts: 70
Hi All ,

Just i started to learn about JMS .

I need to Send xml document to my JMS Client .


How to send this XML Document as a message ?


Thanks in advance.
Senthil Kumar
Greenhorn

Joined: Jul 17, 2007
Posts: 21
To Send this,

Need to establish QueueConnection, then you have to create a new queue.
Create a Queue Session and Queue Sender
Using Mapmessage, you can pass the XML document to your client .

map.setString("XMLDesc",""+XMLURL);

and you can send the map with the send() method of QueueSender.


Preparing for SCJP 1.6
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

"SenthilKumar", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: Send XML document using JMS