Posted: Thu Jul 18, 2002 8:00 am Post subject: Can JMS listener handles standard MQ messages ?
Partisan
Joined: 07 Aug 2001 Posts: 386
I am new to JMS. I was told that I can use the JMS listener to listen on the arrival of a message (or a specific message). I was wondering if that message has to be in the JMS format (i.e. with the JMS header..) or it can be just a standard MQ message (i.e. just contains the MQMD). I have a MQ client program that is now putting message on a queue. I am thinking of using a JMS listener to listen on the queue for any incoming message sent by my client.
Since my client application is regular MQ program , the message I send will not have any JMS header.
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
We are currently doing the same thing with no problems, I have a C program that writes a message queue and we have jms listeners pick them up and process them. _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Hi kelvin,
U can very well use JMS to receive messages.
U may have some problems of header if u send message from JMS to non JMS clients. To avoid this set the TargetClient property in the Queue object to Non-JMS, this would truncate the MQRHF2 headers.
Cheers,
Vadi
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum