|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MessageListener program dies when MQSeries goes down. |
« View previous topic :: View next topic » |
Author |
Message
|
shankerbabu |
Posted: Mon Jun 10, 2002 11:17 am Post subject: MessageListener program dies when MQSeries goes down. |
|
|
Novice
Joined: 21 Apr 2002 Posts: 12
|
Hi everyone,
I have attached a MessageListener program to a Receiver Queue and get the message whenever the onMessage Event get fired.Unfortunatley when the MQSeries goes down and comes up the the program attached to the Reciver queue goes in a undefined stage so that when the mqseries again comes up its not able to retirve the message(more specifically) the onMessage even is not getting fired even when there are messages lying in the queue.
What exception does the MQSeries throw when it about to die to all the attached programs.
how to keep the program to listen for message irrespective of wether the the MQSeries Status Avilable and Not Avialable.i dont want to shut down the program and restart everytime whenever the MQSeries goes down and comes up.Is it anyother more elgant way avilable.
Can any one help me
Thanks
Shanbie |
|
Back to top |
|
 |
kolban |
Posted: Mon Jun 10, 2002 4:24 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
You need to register an ExceptionListener callback against the connection. When a fatal connection exception occurs, such as the JMS provider going down (MQ), then you should release all Connections and associated derived children and recreate. If the provider is down, the re-connection will again fail but when available again, the connection and children can be reestablished under application control. |
|
Back to top |
|
 |
anjan34 |
Posted: Wed Nov 27, 2002 7:06 am Post subject: |
|
|
Newbie
Joined: 19 Aug 2002 Posts: 5
|
HI, I have attached an exception listener to the connection and the exception is thrown when some fatal error occurs. Now i was trying to close the connection. But QueueConnection.close() never returns.
What could be the reason for this? If i don't close the connection some resources outside JVM will not get released. |
|
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
|
|
|
|