Can I deploy xadisk as a JCA resources in Jetty?

400 Views Asked by At

what I want is merge file transaction and db transaction into one. and our application is running on Jetty. but Jetty isn't must. we hope transaction can running standalone, not depend on server. depend on server is acceptable. but it's not the first choice. currently, I use atomikos to manage the transaction.

what I currently understanding is:

  1. is there any example how integer atomikos and XADisk without using enlist? I can use enlist work. but it's a little ugly in our system. in the db part, we don't use enlist method. we use hibernate, and warp the datasource by atomikos for hibernate, I hope use the same solution for xadisk if possible.
  2. I try to use JNDI(Unfortunately, I'm not very familiar with this too. ). I try to bind XADiskConnectionFactoryImpl to JNDI, but I found I need ConnectionManager to instance XADiskConnectionFactoryImpl, but I don't know how to get. I know it for server, but I don't know how. the follow is my configuration in Jetty

    <New  id="xadisk"  class="org.eclipse.jetty.plus.jndi.Resource">
     <Arg>xadisk</Arg>
     <Arg> 
       <New  class="org.xadisk.connector.outbound.XADiskConnectionFactoryImpl">
       </New>
     </Arg>
    

0

There are 0 best solutions below