Posted: Thu Dec 10, 2009 10:42 am Post subject: MDB listening for messages from non-JMS application (RPG)
Newbie
Joined: 29 Jul 2009 Posts: 5
I need to develop a server application to handle messages arriving in a queue from a legacy application (RPG) that does not support JMS.
From what i've figured so far, MDBs seem to be the ideal solution as everything is managed by the ejb container. The prob is that MDBs seem to be closely tied to JMS.
Will JMS be able to handle text non-JMS MQ messages? and has anyone had successful experience setting this up?
Posted: Thu Dec 10, 2009 10:56 pm Post subject: Re: MDB listening for messages from non-JMS application (RPG
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
miklesw wrote:
I need to develop a server application to handle messages arriving in a queue from a legacy application (RPG) that does not support JMS.
From what i've figured so far, MDBs seem to be the ideal solution as everything is managed by the ejb container. The prob is that MDBs seem to be closely tied to JMS.
Will JMS be able to handle text non-JMS MQ messages? and has anyone had successful experience setting this up?
Thanks,
Michael
Hi Michael and welcome as you seem fairly new to MQ.
This is in fact a very common scenario. MQ JMS has no trouble reading a non "JMS" message (meaning a message without the RFH header).
It can also produce such a message (lookup target client properties on the destination). Now you just have to make certain that the provider (RPG) is setting the correct format and CCSID on the message.
For text messages this should be MQMD.Format = MQFMT_STRING and the CCSID should be that of the text written to the message. This being RPG I'd expect it to be cobol and possibly CCSID 500 (EBCDIC international).
For setting outgoing CCSIDs you can check the JNDI CCSID setup of the destination...
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