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 » WebSphere Message Broker (ACE) Support » Receiving and sending JMS messages with WMQI 2.1

Post new topic  Reply to topic
 Receiving and sending JMS messages with WMQI 2.1 « View previous topic :: View next topic » 
Author Message
DELLIPIZ
PostPosted: Tue Apr 18, 2006 7:18 am    Post subject: Receiving and sending JMS messages with WMQI 2.1 Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Hi,

We have an existing WMQI flow that takes XML data and transforms it into Legacy.

In the past whenever we had someone send a JMS message, it would fail in our WMQI flow and if I looked at the exception queue, the extra jms 'stuff' would appear as garbage.

To get rid of this 'extra stuff', we had the sending application change the TARGCLIENT from JMS to MQ and this worked.

However, now we have an application that is insisting on sending the message as JMS.

What do I need to do to be able to successfully parse this message???

Also, now that I need to create a JMS output message, what values do I need to set and how do I do that?

Thanks in advance for your help!!!!

Lori
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 18, 2006 7:39 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The extra "jms" stuff is the MQRFH2 header.

WMQI can parse this just fine.

Your WMQI code, however, may not be expecting it to be there.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
DELLIPIZ
PostPosted: Tue Apr 18, 2006 7:44 am    Post subject: Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Hi again,

So what do I need to put in my WMQI code to be able to handle this header.

Thanks!

-Lori
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 18, 2006 7:59 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It's more a matter of making sure your flow can ignore it.

So the question is, why does your flow fail when the header is there?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JT
PostPosted: Tue Apr 18, 2006 8:09 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
In the past whenever we had someone send a JMS message, it would fail in our WMQI flow and if I looked at the exception queue, the extra jms 'stuff' would appear as garbage.

What was the cause of the exception? The only issue I can see with the presence of the MQRFH2 header is if it contains an mcd folder, which would override the MQInput node properties that describe the characteristics of the incoming message.
Back to top
View user's profile Send private message
DELLIPIZ
PostPosted: Tue Apr 18, 2006 9:18 am    Post subject: Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Hey,

I was just reading some more and it does seem like I need to change my Input node to either JMSStream or JMSMap.

Is there a way to handle BOTH regular XML and JMS messages within one flow?

-Lori
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 18, 2006 9:31 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You only need to use JMSMap or JMSStream if the application is sending JMSMap messages or JMSStream messages.

You can handle XML messages and JMSMap and JMSStream and XML messages that have MQRFH2 headers and TDS messages and CWF messages and MIME messages and IDOC messages and every other possible type of message all in one flow.

Your flow just has to be smart enough not to assume that the message is one thing or another, and examine the message and then do the appropriate thing for that message type.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JT
PostPosted: Tue Apr 18, 2006 9:33 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Set the message domain to BLOB on the MQInput node, and use an RCD node when you determine the format of the message.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Receiving and sending JMS messages with WMQI 2.1
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.