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 » sequential messages with MDB's

Post new topic  Reply to topic
 sequential messages with MDB's « View previous topic :: View next topic » 
Author Message
tricky_knight
PostPosted: Thu Mar 24, 2005 4:07 pm    Post subject: sequential messages with MDB's Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 24, 2005 6:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
fjcarretero
PostPosted: Tue Mar 29, 2005 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
malammik
PostPosted: Wed Mar 30, 2005 6:45 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Which app server are you using?
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
tricky_knight
PostPosted: Wed Mar 30, 2005 10:12 am    Post subject: Reply with quote

Apprentice

Joined: 12 Mar 2005
Posts: 34

Webpshere Application Server 5.1
Back to top
View user's profile Send private message
malammik
PostPosted: Wed Mar 30, 2005 10:49 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
tricky_knight
PostPosted: Wed Mar 30, 2005 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 30, 2005 1:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
malammik
PostPosted: Wed Mar 30, 2005 1:39 pm    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Set all connection and session params to 1.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » sequential messages with MDB's
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.