|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQSimpleConnectionManager's setTimeOut feature is not workin |
« View previous topic :: View next topic » |
Author |
Message
|
satya_vanimireddy |
Posted: Mon Oct 04, 2010 5:46 am Post subject: MQSimpleConnectionManager's setTimeOut feature is not workin |
|
|
Newbie
Joined: 19 Aug 2009 Posts: 5
|
Hi All,
I have a Stand alone application implemented in core java. Using commons-pool (org.apache.commons.pool) I have done connection pooling. Now I got requirement, if the connection is idle for 5 min, I have to destroy the connection. To create MQQueueManger connection I have used MQSimpleConnectionManager and used setTimeOut . The MQQueueManager connection is not destroyed after 5 minutes idle period also.
Please help me how to set MQSimpleConnectionManager's setTimeOut feature when I have created connection pooling with commons-pool.
Thanks in advance
Satya. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Oct 04, 2010 6:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You might have to extend the pool, check for idle time and have a reaper thread close the pooled connection.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
pavan-mq |
Posted: Wed Apr 06, 2011 3:25 am Post subject: |
|
|
Novice
Joined: 03 Feb 2010 Posts: 13
|
Hi,
Is it possible to have a sample code to implement the connection pooling across all the instances of a class( when we use the MQSimpleConnectionManager, i think the connection pool will be available for particular instance of class). Also is it possible to close all the connections when threads in a pool is inactive for certain period of time.
Thanks in Advance,
pavan. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|