Author |
Message
|
tricky_knight |
Posted: Thu Mar 24, 2005 4:07 pm Post subject: sequential messages with MDB's |
|
|
Apprentice
Joined: 12 Mar 2005 Posts: 34
|
has anyone ran into the problem where transactions coming into a queue where an MDB is listnening needs to process messages in order? This seems so contradictive to what J2ee and MDB's are all about about
-the only way I see to achieve this is to lower the connections to 1 so it can go only go one a time..
is this the only alternative when using MDB's? |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 24, 2005 6:52 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Guess so. Haven't seen anybody handling it any differently.
What is the business case behind it ?
 |
|
Back to top |
|
 |
fjcarretero |
Posted: Tue Mar 29, 2005 2:06 pm Post subject: |
|
|
Voyager
Joined: 13 Oct 2003 Posts: 88
|
I think, MQ doesn't maintain the message order unless you only use one qMgr.
You should have a mechanism to reprocess messages that are out of order.
Check this.
Cheers.
Felipe |
|
Back to top |
|
 |
malammik |
Posted: Wed Mar 30, 2005 6:45 am Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
|
Back to top |
|
 |
tricky_knight |
Posted: Wed Mar 30, 2005 10:12 am Post subject: |
|
|
Apprentice
Joined: 12 Mar 2005 Posts: 34
|
Webpshere Application Server 5.1 |
|
Back to top |
|
 |
malammik |
Posted: Wed Mar 30, 2005 10:49 am Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
On 5.x using listener properties, you can configure the listener to process one message at a time. I have had quite a number of cases where this was necessary. For example when processing orders and order updates. You dont want to get an update for an order that has not been processed yet. J2EE mdb allows beans to be abstracted from the messaging layer. I dont think this contradics J2EE architecture. Moreover, you can still get a quite decent performance even processing your messages serially. _________________ Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex |
|
Back to top |
|
 |
tricky_knight |
Posted: Wed Mar 30, 2005 12:25 pm Post subject: |
|
|
Apprentice
Joined: 12 Mar 2005 Posts: 34
|
Thanks for the reply.
By listener properties you are saying change the parameter for max connections to 1 within the MessageLisneterProperties in the Admin Console, correct? Should you also lower the max connection/max session for the attached QueueConnectionFactory? |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Mar 30, 2005 1:16 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I'd discuss the last one with the WAS and MQ Admins.
Enjoy  |
|
Back to top |
|
 |
malammik |
Posted: Wed Mar 30, 2005 1:39 pm Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
|
Back to top |
|
 |
|