aspose file tools
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 The Software Craftsman this week in the Agile 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

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

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 .


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

Preparing for SCJP 1.6
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62307

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Have you tried LearnNowOnline?
subject: Send XML document using JMS