You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by rgavlin <rg...@yahoo.com> on 2010/01/26 16:26:17 UTC
[SMX4] Document how to configure ActiveMQ PooledConnectionFactory
w/SMX4
The new smx-jms endpoints page
(http://servicemix.apache.org/servicemix-jms-new-endpoints.html) describes
how to "use a pooled connectionFactory for optimal jms:provider
performance". This configuration technique workw with SMX3 and plain Spring.
I believe some additional OSGi configuration may be required for SMX4. Would
it make sense to open a JIRA to update the documentation to support both
SMX3 & SMX4?
/Ron
In order to optimize jms resource usage configure your jms:provider with a
PooledConnectionFactory.
Example:
<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" />
</bean>
</property>
<!--Configure maximum connections used by the pool -->
<property name="maxConnections" value="1" />
<!--Configure maximum sessions per connection -->
<property name="maximumActive" value="1" />
</bean>
--
View this message in context: http://old.nabble.com/-SMX4--Document-how-to-configure-ActiveMQ-PooledConnectionFactory-w-SMX4-tp27324413p27324413.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.