I have trouble to configure the pool of multiple JCAConnector threads.
Below is my configuration:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="transactionManager"
class="org.jencks.factory.TransactionManagerFactoryBean"/>
<bean id="connectionFactory"
class="org.jencks.amqpool.PooledConnectionFactory">
<constructor-arg value="discovery:(multicast://default)" />
<property name="maxConnections" value="8" />
</bean>
<bean id="myJencks" class="org.jencks.JCAContainer">
<property name="threadPoolSize" value="20"/>
<property name="transactionManager" ref="transactionManager"/>
<property name="resourceAdapter">
<bean id="activeMQResourceAdapter"
class="org.apache.activemq.ra.ActiveMQResourceAdapter">
<property name="serverUrl" value="discovery:(multicast://default)"/>
</bean>
</property>
</bean>
<bean id="inboundConnector" class="org.jencks.JCAConnector">
<property name="jcaContainer" ref="myJencks" />
<property name="activationSpec">
<bean class="org.apache.activemq.ra.ActiveMQActivationSpec">
<property name="destination" value="TOOL.DEFAULT"/>
<property name="destinationType" value="javax.jms.Queue"/>
</bean>
</property>
<property name="ref" value="JencksConsumer"/>
</bean>
<bean id="JencksConsumer" class="JencksConsumer"/>
</beans>
I notice set the threadpoolsize only create multiple sessions for one
connection, so how can I configure for mulitple connection threads?
--
View this message in context:
http://www.nabble.com/How-to-configure-multiple-connection-threads-tp15447114p15447114.html
Sent from the jencks - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email