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?