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 Send XML document using 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 "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: 63844

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

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Send XML document using JMS
It's not a secret anymore!