Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I send messages from JMS to non-JMS applications?

How do I send messages from JMS to non-JMS applications?

by  pmeekin  Posted    (Edited  )
JMS messages use the self-describing XML format and in particular the MQSeries format RFH2. However, it is possible to force MQ to send messages in the 'traditional', unformatted manner.

On the Destination (i.e. the Queue or Topic) use method:
setTargetClient(type)

where type is:
JMSC.MQJMS_CLIENT_NONJMS_MQ for 'traditional' MQ messages or
JMSC.MQJMS_CLIENT_JMS-COMPLIANT means JMS messages

Note that this should work either within the program or for objects defined via JNDI.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top