Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sending/receiving the XML message over JMS  RSS feed

 
trupti nigam
Ranch Hand
Posts: 640
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HEllo All,

I have to write a MDB that will receive a XML message and send XML message on the JMS queue.
I have never sent an XML message over JMS.
How do i send a XML over JMS. Will it be sent as a TEXT message or object Message. We are using JDK1.4 and Weblogic 8.1. DO I need to USe JAXB for this?

Please suggest me something as I am new to this.Send me few pointers that will help me a lot.

Thanks,
Trupti
 
Gul Khan
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by trupti nigam:
HEllo All,

I have to write a MDB that will receive a XML message and send XML message on the JMS queue.
I have never sent an XML message over JMS.
How do i send a XML over JMS. Will it be sent as a TEXT message or object Message. We are using JDK1.4 and Weblogic 8.1. DO I need to USe JAXB for this?

Please suggest me something as I am new to this.Send me few pointers that will help me a lot.

Thanks,
Trupti


Check JMS tutorials, can find one on Sun website. You can find code with it also. The JMS sender class can take the xml as text string and put it in the Q or it can send as Object. Depends on your strategy.
If you want to just send than you dont need JAXB. For reading there are many options available.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!