This discussion is archived
1 Reply Latest reply: Dec 17, 2012 10:06 AM by Tom B RSS

MQ connection pool connections not closed during restart

980281 Newbie
Currently Being Moderated
Dear friends,
I am facnig the issue as described below.
In the application, during first call, we are creating MQ connection pool of 20 connections. But the connections are not closed during restart of Weblogic, It seems.
It says it exceeded the maximum number of connections.
Could someone please tell me how to write user defined code to close all connections during weblogic restart.
Thanks in advance.
Regards,
Raja Mohammed.
  • 1. Re: MQ connection pool connections not closed during restart
    Tom B Expert
    Currently Being Moderated
    As far as I recall, WebLogic cleans up all of its JMS connection pools upon a normal shutdown. This covers connections maintained by resource-reference pools (for application JMS calls), MDBs (for inbound messaging), and bridges (for messaging forwarding). Perhaps your application is caching connections external to these services? If so, then the app needs to be changed so that it closes any of its owned connections on shutdown. Also, MQ itself should be able to automatically clean-up any of it's dead connections - I'm not familiar with MQ tuning, but assume it should have a way to tune this; that said, there may be some limit as to how aggressive you can get with this tuning.

    HTH,

    Tom

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points