Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Send XML document using JMS  RSS feed

 
kavitha vasu
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
Chrome Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"SenthilKumar", please check your private messages for an important administrative matter.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!