Atomikos Forum |
|
I didn't found any documentation on how to use Atomikos with servicemix.
Their documentation is pretty basic, I was wondering if it's worth trying it out and make it working... http://servicemix.apache.org/jca.html o use XA for an inbound connection in the JCA container you'll need to specify a transaction manager to the connector. Here's an example <sm:activationSpec componentName="myJmsReceiver" service="foo:myJmsReceiver" destinationService="foo:receiver"> <sm:component><bean class="org.apache.servicemix.components.jms.JmsInUsingJCABinding"> <property name="jcaContainer" ref="jencks"/> <property name="activationSpec"> <bean class="org.apache.activemq.ra.ActiveMQActivationSpec"> <property name="destination" value="test.org.apache.servicemix.example.jca"/> <property name="destinationType" value="javax.jms.Topic"/> </bean> </property> <!-- use XA transactions --> <property name="transactionManager" ref="transactionManager"/> <property name="synchronous" value="true"/> </bean></sm:component> </sm:activationSpec> You also need to provide a transaction manager implementation to use. Here this exampe uses Geronimo's Transaction Manager. <bean id="transactionManager" class="org.jencks.factory.TransactionManagerFactoryBean"> <property name="transactionLogDir" value="target/txlog" /> </bean> |