jQuery in Action, 3rd edition
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63349

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: Send XML document using JMS
It's not a secret anymore!