ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MDB listening for messages from non-JMS application (RPG)

Post new topic  Reply to topic
 MDB listening for messages from non-JMS application (RPG) « View previous topic :: View next topic » 
Author Message
miklesw
PostPosted: Thu Dec 10, 2009 10:42 am    Post subject: MDB listening for messages from non-JMS application (RPG) Reply with quote

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?

Thanks,

Michael
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 10, 2009 10:56 pm    Post subject: Re: MDB listening for messages from non-JMS application (RPG Reply with quote

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...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MDB listening for messages from non-JMS application (RPG)
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.