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 » Channels keep running, even though connection has been stop

Post new topic  Reply to topic
 Channels keep running, even though connection has been stop « View previous topic :: View next topic » 
Author Message
middlewareonline
PostPosted: Mon Jan 20, 2003 2:40 pm    Post subject: Channels keep running, even though connection has been stop Reply with quote

Acolyte

Joined: 09 Jul 2001
Posts: 73

We are using MQ JMS in Stateless Session EJB''s with Weblogic server.
Each bean does createConnection, createSession, createSender, send
creteReceiver, get and close/stop all the handles (inlcuding connection).
Closing/Stopping is done in finally block (so it is getting executed).

We see that the netstat on the client machine increases and remains even
after the EJB''s have done stop on the connection. We are setting useconnpool
in JMSAdmin to ""Y"". But, I don''t think that is what is causing the problem.
The SVRCONN channels keep running long after the client has completed the
send/receive/close sequence. The HB interval is 300 on SVRCONN channels. We
are using MQ Series Classes for Java (MA88) version 5.2 ( NOT 5.3) on sun
solaris. Also, the number of ESTABLISH connection is NOT equal to the
SVRCONN channel instances. We see more connections opened on Client machines
than there are Schannel running on the queue manager machines (also, fewer
amqcrsta processes).

Any pointers as to why the conenctions still show in ESTABLISHED state and
channels keep running.

Thank you.

Chris
Back to top
View user's profile Send private message Visit poster's website
yaakovd
PostPosted: Thu Jan 23, 2003 6:34 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Server Connection chanel is not disconnected automatically.
We fixed this problem in past...

//All objects from javax.jms.*
protected QueueConnection connection;
protected QueueSession sessionSender;
protected QueueSession sessionReceiver;
protected QueueSender sender;
protected QueueReceiver receiver;

public synchronized boolean isConnected() {
return connection != null;
}

public synchronized void disconnect() throws Exception {
if (!isConnected()) {
return;
}
if (sessionSender != null) {
sessionSender.close();
}
if (sessionReceiver != null) {
sessionReceiver.close();
}
if (connection != null) {
connection.stop();
connection.close();
}
sender = null;
receiver = null;
sessionSender = null;
sessionReceiver = null;
connection = null;
}
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
middlewareonline
PostPosted: Fri Jan 24, 2003 7:12 am    Post subject: Reply with quote

Acolyte

Joined: 09 Jul 2001
Posts: 73

Thank you for your input. Have you used USECONNPOOL (Y) option of JMSAdmin or w/o it. I know it probably has no bearing on it in your case.
_________________
---------------------------------------------
IBM & SUN (J2EE) Certified Consultants,
http://www.MiddlewareOnline.com
A "SARVAM" Online Portal
http://www.SARVAM.com
---------------------------------------------
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Channels keep running, even though connection has been stop
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.