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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQS/JMS Message Header Problems 1

Status
Not open for further replies.

neri

Technical User
Feb 10, 2004
2
MX
When I send a JMS Message like a "a Message" to an MQS-Queue, then the MQS set a MQS-Header, so that my Message "a Message" looks like this

"RFH .......t.......¸MQSTR.......¸...
<mcd><Msd>jms_text</Msd></mcd> ...(<jms><Dst>queue:///request</Dst></jms> a Message&quot;

Is there any possibility to discard the message-head, so that only origin message &quot;a Message&quot; in MSQ Queue would arrive.

Thanks for any help,

neri
 
I have just submitted this as a FAQ but until it appears, here it is:

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top