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 » Connections not closing on Application shutdown

Post new topic  Reply to topic
 Connections not closing on Application shutdown « View previous topic :: View next topic » 
Author Message
jfnorris
PostPosted: Fri Jul 11, 2008 8:43 am    Post subject: Connections not closing on Application shutdown Reply with quote

Newbie

Joined: 11 Jul 2008
Posts: 1

Hi,
I have an application using stateless session beans running on WAS 6.1. When we upgraded from 5.12 to 6.1 we had an issue "Java application tries to reuse a session and gets javax.jms.IllegalStateException". To fix this I added code based on input from IBM to open and close a connection each time. This seems to be running fine but when the application is stopped I see a number of instances of "J2CA0088W: The ManagedConnection that is being destroyed from resource MgBridge/jms/QueueConnectionFactory is in an invalid state STATE_TRAN_WRAPPER_INUSE." Is there a closure that I'm missing somewhere or a way to make sure all connections are closed properly.

Thanks in advance.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jul 11, 2008 10:50 am    Post subject: Reply with quote

Grand High Poobah

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

On destroy/finalize any servlet or other part of your application that accesses MQ resources will need to relinquish those resources.MDB should use container managed access to the MQ resources.

Enjoy
_________________
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 » IBM MQ Java / JMS » Connections not closing on Application shutdown
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.