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 » Common Message Model, Different wire formats - Parsing

Post new topic  Reply to topic
 Common Message Model, Different wire formats - Parsing « View previous topic :: View next topic » 
Author Message
xprezons
PostPosted: Fri May 13, 2005 8:32 am    Post subject: Common Message Model, Different wire formats - Parsing Reply with quote

Novice

Joined: 02 Sep 2004
Posts: 16
Location: UK

Hi,

Is it possible to read messages from a *common* queue, wherein the messages have a common message model, but having different wire formats (i.e. CSV, Fixed length format)?

The only way, I can think of is to read the message as a BLOB and then figure out by scanning the message contents and then applying a Reset Content Descriptor to parse the message to the model.

Is there a smarter way of doing this? Appreciate your thoughts on this.

TIA,
Xprezons.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
JLRowe
PostPosted: Fri May 13, 2005 8:41 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

Multipart messages allow you to embed a message format within an envelope message, but I don't think they work across different wire formats.

The only definite way I can think of is to use a BLOB and a RCD.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri May 13, 2005 8:52 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

As long as the messages are all part of the same message set, and can be reasonably distinguished by the first few bits... the parser may be smart enough to do this for you.

Also, if the message producers can attach an MQRFH2, then they can fully specify what to use to parse the message - and the broker will use that instead of what is on the Input node.

And you could also model one message that contained a single choice element - that contained each different message. Then you wouldn't need the RCD - you'd just need something to use to determine how to resolve the choice, and then your code would force the resolution.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
xprezons
PostPosted: Fri May 13, 2005 11:35 am    Post subject: Reply with quote

Novice

Joined: 02 Sep 2004
Posts: 16
Location: UK

jefflowrey wrote:
As long as the messages are all part of the same message set, and can be reasonably distinguished by the first few bits... the parser may be smart enough to do this for you.

Also, if the message producers can attach an MQRFH2, then they can fully specify what to use to parse the message - and the broker will use that instead of what is on the Input node.

And you could also model one message that contained a single choice element - that contained each different message. Then you wouldn't need the RCD - you'd just need something to use to determine how to resolve the choice, and then your code would force the resolution.


Thank you for your suggestions. The beauty lies in their simplicity

Shall have to summon a meeting with the message producers
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Common Message Model, Different wire formats - Parsing
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.