|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JMS and grouping |
« View previous topic :: View next topic » |
Author |
Message
|
techno |
Posted: Thu Feb 05, 2004 3:39 pm Post subject: JMS and grouping |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Feb 05, 2004 5:36 pm Post subject: |
|
|
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 |
|
 |
dwitherspoon |
Posted: Thu Feb 19, 2004 9:49 am Post subject: I thought group did work with JMS |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|