Atomikos Forum

Atomikos & Service Mix?

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>
Antonio Terreno Send private email
Tuesday, February 03, 2009
 
 
Hi,

Thanks for the tip. ServiceMix seems to be pretty much tied into Jencks - would you be able to give a hint as to why switch to Atomikos?

Thanks
Guy
Guy Pardon Send private email
Thursday, February 05, 2009
 
 
Hi Guy,

I would like to use atomikos since in our system we already use it for DB-JMS transactionality...

So the idea was to do not introduce yet another framework!
Antonio Terreno Send private email
Thursday, February 19, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics