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 » MQ Channel remains active

Post new topic  Reply to topic
 MQ Channel remains active « View previous topic :: View next topic » 
Author Message
jk
PostPosted: Thu Sep 07, 2006 5:55 am    Post subject: MQ Channel remains active Reply with quote

Apprentice

Joined: 09 Jan 2002
Posts: 36

Hi,
I am using MQ 5.3 and MQ Classes for Java as my client. The client application is running on a Websphere 6.0.2 Application Server. The problem is that after the client application picks a message, closes the queue and disconnects the MQManager, the channel connection remains active and is never closed unless the application server shuts down. As new clients arrive, new channel connections are created but never closed until the max number of active connections is reached.

Any ideas why the channel remains open after calling the close and disconnect methods?

Thanks in advance
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Sep 07, 2006 8:33 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I think you need to search for TCPKeepAlive and AdoptNewMCA in the forum and set them in your qm.ini (or wherever that's done depending on your MQ platform)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PeterPotkay
PostPosted: Thu Sep 07, 2006 4:39 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

AdoptNewMCA is only going to apply to non CLient channels, and I think JK is saying the SVRCONN channel (a client channel) is what's left hanging.

KeepAlive can help, but only if the connection really is orphaned.

Quote:

The problem is that after the client application picks a message, closes the queue and disconnects the MQManager, the channel connection remains active and is never closed unless the application server shuts down.

Sounds to me that either you are not doing a succesful MQDISC as far as the QM is concerned, or you have some sort of connection pool, where you disconnect ends its "connection", but the connection really is maintained and thrown into a pool. And new instances don't dip into the pool, but rather make a new connection???
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 07, 2006 5:58 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I just think you need to upgrade your MQ install to get the most recent version of the 5.3 Java classes....


_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jk
PostPosted: Wed Sep 13, 2006 4:09 am    Post subject: Reply with quote

Apprentice

Joined: 09 Jan 2002
Posts: 36

Hi All,
thanks for the responses.
the problem is now fixed.
it was because the disconnect was not being called on the right QMgr object. A coding error that was overlooked for such a long time

Thanks
Back to top
View user's profile Send private message
MQSDevr
PostPosted: Thu Oct 05, 2006 3:44 am    Post subject: It happens to all of us =) Reply with quote

Newbie

Joined: 05 Oct 2006
Posts: 1
Location: South Africa

Hi,

Had the same error, it was an instance of the connection object not being terminated as it was declared twice and the incorrect one closed.

Take care.
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 » MQ Channel remains active
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.