You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jeff Yu (JIRA)" <ji...@apache.org> on 2007/11/23 09:01:30 UTC
[jira] Issue Comment Edited: (SM-1065) ActiveMQ integration
[ https://issues.apache.org/activemq/browse/SM-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40702 ]
jeff.yu edited comment on SM-1065 at 11/22/07 11:59 PM:
--------------------------------------------------------
Update the patch. Merged updates against latest 4.0 branch code.
----
For the transaction, actually, the jcaPoolConnectionFactory will enlist the broker's xaResource into the transactionManager, if users provided the transaction manager.
if users want to create a session, with the transactionManager, it will populate xaResource in following code in XaConnectionPool:
session.setIgnoreClose(true);
transactionManager.getTransaction().registerSynchronization(new Synchronization(session));
incrementReferenceCount();
transactionManager.getTransaction().enlistResource(createXaResource(session));
So, the jcaPoolConnectionFactory will know the this broker resource manager, if it is RecoverableTransactionManager, it can loop the resources, and invoke: recoverResourceManager(NamedXAResourceManager) accordingly.
was (Author: jeff.yu):
Update the patch. Merged updates against latest 4.0 branch code.
----
For the transaction, actually, the jcaPoolConnectionFactory will enlist the broker's xaResource into the transactionManager, if users provided the transaction manager.
if users want to create a session, with the transactionManager, it will populate xaResource in following code in XaConnectionPool:
session.setIgnoreClose(true);
transactionManager.getTransaction().registerSynchronization(new Synchronization(session));
incrementReferenceCount();
transactionManager.getTransaction().enlistResource(createXaResource(session));
So, the jcaPoolConnectionFactory will know the this broker resource manager, if it is RecoverableTransactionManager, it will loop the resources, and invoke: recoverResourceManager(NamedXAResourceManager) accordingly.
> ActiveMQ integration
> --------------------
>
> Key: SM-1065
> URL: https://issues.apache.org/activemq/browse/SM-1065
> Project: ServiceMix
> Issue Type: New Feature
> Reporter: Guillaume Nodet
> Assignee: Jeff Yu
> Fix For: 4.0
>
> Attachments: SM-1065.patch, SMX-1065-2.patch
>
>
> ActiveMQ jars are already OSGified, but we may want to create a bundle that would create a broker by default and registering a pooled connection factory in OSGi maybe. That way, everyone could use the ConnectionFactory registered in OSGi.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.