JMS Pooling
https://community.pivotal.io/s/article/Using-Connection-Pooling-with-JMSTemplate-in-Spring-Framework?language=en_US
set a bean preloaded org.apache.activemq.pool.PooledConnectionFactory
<bean id="connectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory" destroy-method="stop">
This class PooledConnectionFactory has a field connectionFactory
which get broker url in class ActiveMQConnectionFactory
finally jmstemplate class is preloaded as bean and set its property to connectyfactory set above
< property name="connectionFactory" ref="connectionFactory"/>
No hay comentarios:
Publicar un comentario