activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bummer <sangwoo.h...@gmail.com>
Subject Resource Adapter does not seem to drop bad connection
Date Wed, 25 Jul 2007 23:40:30 GMT

Hi !

Does activemq resource adapter keep the connection pool valid ?
Isn't there any way that I can remove bad connection and re-establish new
ones ?
I have used with following activemq setup and it didn't work. The bad
connection stays in the
pool forever !!!!

Thanks.
-----------------------------------------------
  <bean id="transactionManager"
class="org.jencks.factory.TransactionManagerFactoryBean"/>
  <bean id="connectionTracker"
class="org.jencks.factory.ConnectionTrackerFactoryBean">
     <property name="geronimoTransactionManager" ref="transactionManager" />
  </bean>

  <bean id="connectionManager"
class="org.jencks.factory.ConnectionManagerFactoryBean">
    <property name="transactionManager" ref="transactionManager"/>
    <property name="poolingSupport"> 
       <bean class="org.jencks.factory.PoolingSupportFactoryBean"> 
	  <property name="poolMaxSize" value="10" /> 
	  <property name="poolMinSize" value="0" /> 
	  <property name="connectionMaxWaitMilliseconds" value="5000" /> 
	  <property name="connectionMaxIdleMinutes" value="2" /> 
	  <property name="allConnectionsEqual" value="true" /> 
       </bean> 
    </property> 
    <property name="connectionTracker" ref="connectionTracker"/>
  </bean>

  <bean id="amqJmsResourceAdapter"
class="org.apache.activemq.ra.ActiveMQResourceAdapter">
     <property name="serverUrl" value="tcp://testy:61616"/>
  </bean>

  <bean id="amqJmsManagedConnectionFactory"
        class="org.apache.activemq.ra.ActiveMQManagedConnectionFactory">
    <property name="resourceAdapter" ref="amqJmsResourceAdapter"/>
  </bean>

  <bean id="jcaJmsFactory"
class="org.jencks.factory.ConnectionFactoryFactoryBean">
    <property name="managedConnectionFactory"
ref="amqJmsManagedConnectionFactory"/>
    <property name="connectionManager" ref="connectionManager"/>
  </bean>		  

-- 
View this message in context: http://www.nabble.com/Resource-Adapter-does-not-seem-to-drop-bad-connection-tf4148593s2354.html#a11801870
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message