« Return to Thread: Inbound MDP - multiple connection threads in a pool

Re: Inbound MDP - multiple connection threads in a pool

by tom.bujok :: Rate this Message:

Reply to Author | View in Thread

My question is still relevant...

How to configure the outbound connection pool = make the JCA Container to use many connections to the ActiveMQ  broker for one Message Driven Pojo

I think I have it wrongly configured, this part of my configuration is not referenced in any other bean: <bean id="AMQconnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"/>
   
  <bean id="connectionFactory" class="org.jencks.amqpool.JcaPooledConnectionFactory">
    <constructor-arg value="vm://localhost" />
    <property name="connectionFactory" ref="AMQconnectionFactory" />
    <property name="maxConnections" value="8" />
    <property name="maximumActive" value="8" />
    <property name="transactionManager" ref="transactionManager"/>
    <property name="name" value="LocalBroker"/>
  </bean>

So I am actually sure that I can remove it... ActiveMQActivationSpec -> it configures number of sessions per connection... but how to configure the outbound connection pool = make the JCA Container to use many connections to the ActiveMQ  broker for one Message Driven Pojo (one queue)

-

 « Return to Thread: Inbound MDP - multiple connection threads in a pool