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 Process Server (WID/WPS/WAS+) » Unable to start MDB Listener

Post new topic  Reply to topic
 Unable to start MDB Listener « View previous topic :: View next topic » 
Author Message
siva.kasetty
PostPosted: Tue Dec 08, 2009 12:11 am    Post subject: Unable to start MDB Listener Reply with quote

Apprentice

Joined: 17 Mar 2008
Posts: 45

Hi,
I am using MQ export binding for polling a MQ queue.
Binding create a listener in Admin console when application deployed to server.
I am testing a failure case that I want MDB Listener up and running when MQ down means Queue manager is down.

But its not happening.

MDB Listener goes stopped state after 5 retries.

giving following exp:

WMSG0019E: Unable to start MDB Listener _export.Component1Export1MQ, JMSDestination TESTMQ/Component1Export1_MQ_RECEIVE_D : javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'localhost:TEST'


so how to keep MDB Listener Stared state always.

Thanks...
Back to top
View user's profile Send private message
moonwalker
PostPosted: Mon Jan 25, 2010 2:39 am    Post subject: Reply with quote

Apprentice

Joined: 02 Jun 2009
Posts: 42

Well this according to me is not possible because a listener always listens to a queue accessible through a port of the Queue Manager.

If there is an incoming request on that queue then the listener invokes the MDB.

Once the Queue manager goes down then the port of the queue manager also gets closed and the listener would be unable to access the queue and hence the error.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jan 25, 2010 6:10 am    Post subject: Re: Unable to start MDB Listener Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

siva.kasetty wrote:
I am testing a failure case that I want MDB Listener up and running when MQ down means Queue manager is down.


What exactly would it be listening to?

Surely it makes more sense to restart it when the queue manager comes back up? Or reconnect via client to another, still running MQ if your design supports that?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
wooda
PostPosted: Tue Mar 09, 2010 3:11 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

As I suspect you know the error javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'localhost:TEST'
means that a connection could not be made to the QMGR defined in the CF.

There should be the MQ specific error in the stack somewhere as well.

How to keep a connectipn up ? Well you'll need to connect to another QMGr as the down one obviously cannot be connected to....

You might consider using CCDT in the CF to provide a list of possible QMGRs to connect to ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 09, 2010 12:54 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20697
Location: LI,NY

wooda wrote:
As I suspect you know the error javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'localhost:TEST'
means that a connection could not be made to the QMGR defined in the CF.

There should be the MQ specific error in the stack somewhere as well.

How to keep a connectipn up ? Well you'll need to connect to another QMGr as the down one obviously cannot be connected to....

You might consider using CCDT in the CF to provide a list of possible QMGRs to connect to ?


Obviously a CCDT is not always advisable, especially not when the MDB is expected to process inbound messages...that will go to the indicated destination. If you do load balancing in a cluster, you should have an MDB listening to each possible destination.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » Unable to start MDB Listener
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.