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 » JMS and grouping

Post new topic  Reply to topic
 JMS and grouping « View previous topic :: View next topic » 
Author Message
techno
PostPosted: Thu Feb 05, 2004 3:39 pm    Post subject: JMS and grouping Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

We know that grouping is not supported on JMS. I would like to know how people deal with this issue in real life, in case the program follows JMS API.

We have listener class and method onMessage( msg). Calls to onMessage method, I think, are threaded. We don't know which sequence they come in. How do we take care of the messages which are to be sequential? Say File Transfer. Or some other txn..

Anybody has implemented customized grouping in their JMS code? It must have been. Could you share?

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Feb 05, 2004 5:36 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I imagine you could do this in a lot of different ways.

One is to use a EJB that gets called from onMessage, and passed in the various unordered chunks of message, and can then assemble the messages in the proper way.

Another way is similar to how it's done in WMQI - use a database to aggregate the message pieces, and code onMessage to identify the "last" message as a trigger for doing a database select to retrieve everything.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
dwitherspoon
PostPosted: Thu Feb 19, 2004 9:49 am    Post subject: I thought group did work with JMS Reply with quote

Acolyte

Joined: 09 Dec 2003
Posts: 59

The initial post in this thread confuses me by saying that grouping doesn't work with JMS. JMS defines JMSXGroupID and JMSXGroupSeq for indicating that a message is in a certain position within a group. And the MQ documentation talks about how these fields map into/out of the RFH2 header and the MQMD.

Grouping is supported under JMS, yes?

Is there a way for a JMS client to set any of the MQGMO flags? In particular, I want to set MQC.MQGMO_ALL_MSGS_AVAILABLE and MQC.MQGMO_LOGICAL_ORDER. Does IBM's JMS implementation already set these flags? If not, can I set them somehow?

Thanks for any help!

_________________
Good...Fast...Cheap. Choose any two.
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 » IBM MQ Java / JMS » JMS and grouping
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.