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 » Method close() hanging

Post new topic  Reply to topic
 Method close() hanging « View previous topic :: View next topic » 
Author Message
Tchule
PostPosted: Mon May 27, 2002 7:02 am    Post subject: Method close() hanging Reply with quote

Newbie

Joined: 27 May 2002
Posts: 2

Hello,

I have a problem while closing MQ objects like a QueueReceiver or a QueueSession, the close() method is hanging and never return.

My application (running in a weblogic server) is using 'permanent' listeners.
These listeners are occasionnaly disconnected from the queue manager (because of TCP/IP or because of a queue manager restart) and are becomming 'deaf'.
I try to correct the problem by restarting my listeners but the close method is blocking when i'm disconnected.

Is there a easy way to detect the fact that i'm disconnect before to try to close my objects ?

Tchule.

ps : if my english is not perfect ... it's because i'm french, please forgive me
Back to top
View user's profile Send private message
StefanSievert
PostPosted: Mon May 27, 2002 11:15 am    Post subject: Re: Method close() hanging Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Tchule wrote:
Hello,

I have a problem while closing MQ objects like a QueueReceiver or a QueueSession, the close() method is hanging and never return.

My application (running in a weblogic server) is using 'permanent' listeners.
These listeners are occasionnaly disconnected from the queue manager (because of TCP/IP or because of a queue manager restart) and are becomming 'deaf'.
I try to correct the problem by restarting my listeners but the close method is blocking when i'm disconnected.

Is there a easy way to detect the fact that i'm disconnect before to try to close my objects ?

Tchule.

ps : if my english is not perfect ... it's because i'm french, please forgive me

Bon jour!
Please take a look at the MQSeries using Java (or any other JMS documentation) documentation for something called ExceptionListener. The method registered with such a listener will be invoked when exceptions occur in the transport (provider) layer of the JMS classes. If you don't have one of these registered, you will never get informed about MQ exceptions that happen after a successful connection has been established due to the asynchronous nature of JMS.
Hope this helps,
Stefan
_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
Tchule
PostPosted: Mon May 27, 2002 10:54 pm    Post subject: Reply with quote

Newbie

Joined: 27 May 2002
Posts: 2

Thanks a lot, I've just implemented this solution, it works fine.

Merci.

Tchule.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Method close() hanging
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.