Repository: servicemix Updated Branches: refs/heads/servicemix-5.0.x 06c7f8bb0 -> a5ef6595b
SM-2324: Use JcaPooledConnectionFactory instead of XaPooledConnectionFactory Thanks to Benjamin Graf for the patch!!! (Cherry picked from the commit 9881d7b29c444bb92e3455e12c6b0caed0174b6a) Project: http://git-wip-us.apache.org/repos/asf/servicemix/repo Commit: http://git-wip-us.apache.org/repos/asf/servicemix/commit/a5ef6595 Tree: http://git-wip-us.apache.org/repos/asf/servicemix/tree/a5ef6595 Diff: http://git-wip-us.apache.org/repos/asf/servicemix/diff/a5ef6595 Branch: refs/heads/servicemix-5.0.x Commit: a5ef6595b4bbc33420b731c819a964a949e365c6 Parents: 06c7f8b Author: Krzysztof Sobkowiak <[email protected]> Authored: Tue Jul 15 22:48:54 2014 +0200 Committer: Krzysztof Sobkowiak <[email protected]> Committed: Tue Jul 15 22:53:05 2014 +0200 ---------------------------------------------------------------------- .../src/main/resources/OSGI-INF/blueprint/activemq-service.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/servicemix/blob/a5ef6595/activemq/activemq-service/src/main/resources/OSGI-INF/blueprint/activemq-service.xml ---------------------------------------------------------------------- diff --git a/activemq/activemq-service/src/main/resources/OSGI-INF/blueprint/activemq-service.xml b/activemq/activemq-service/src/main/resources/OSGI-INF/blueprint/activemq-service.xml index c17915b..e64b3da 100644 --- a/activemq/activemq-service/src/main/resources/OSGI-INF/blueprint/activemq-service.xml +++ b/activemq/activemq-service/src/main/resources/OSGI-INF/blueprint/activemq-service.xml @@ -39,10 +39,11 @@ </bean> <!-- connection factory wrapper to support auto-enlisting of XA resource --> - <bean id="jmsXaPoolConnectionFactory" class="org.apache.activemq.pool.XaPooledConnectionFactory"> - <property name="maxConnections" value="1" /> + <bean id="jmsXaPoolConnectionFactory" class="org.apache.activemq.pool.JcaPooledConnectionFactory"> + <property name="maxConnections" value="8" /> <property name="connectionFactory" ref="jmsXaConnectionFactory" /> <property name="transactionManager" ref="osgiJtaTransactionManager" /> + <property name="name" value="activemq.${broker-name}" /> </bean> <bean id="jmsXaConnectionFactory" class="org.apache.activemq.ActiveMQXAConnectionFactory">
