How do I configure a JMS SU to use a pooled connection factory?
Environment
- Fuse ESB 3.x
Issue
How do I configure a JMS SU to use a pooled connection factory?
Resolution
Add the following to your JMS Service Units xbean.xml
<bean id="connectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616?wireFormat.maxInactivityDuration=0" />
</bean>
</property>
<property name="maxConnections" value="3" />
<property name="maximumActive" value="3" />
</bean>
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments