This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60049
    
  65

"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
 
Similar Threads
sending XML document as text messages
Questions about JMS-implemented Weblogic Webservices
i want code for this problem
JMS message
XML and MAPI