• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Websphere MQ client not closing MQ connection

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using Websphere App server 6.0.2.25 on which I deployed one MDB which listen to JMS provider Websphere MQ 6.0. For this I have configured one listener on Websphere App server. I have configured Queue connection factory also. Everything works fine except one thing, when app server receives new message it opens new connection and read message from queue and deliver it to MDB and do not close connection. Thus on every message arrival one connection increases. Please let me know if there is any setting in app server which I can set to close queue connection everytime reading message. For resolving I have desabled connection pooling also but even after this app server is holding that connection.

Please let me know settings to close that connection.

Thanks in advance.
Alok
 
Anshul Jain
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem is resolved. I was using com.ibm.mq.MQQueueManager.close() which was not releasing MQ connection before close. Now I am using com.ibm.mq.MQQueueManager.disconnect() before com.ibm.mq.MQQueueManager.close() which releases MQ connection properly.
 
There is no "i" in denial. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic