Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

sending/receiving the XML message over JMS

 
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't MAKE me come back there with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic