• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Send XML document using JMS

 
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
Pie
Posts: 64613
86
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic