Atomikos Forum

Support for Last resource Gambit with 2 resource ?

Hi Guy,

Currently we have multiple resources, Mysql database and Infinispan(Jboss) cache.

We use JTA transactions , and Atomikos as our transaction manager. We use spring to configure this.

Currently we are infinispan as second level cache similar to what hibernate hibernate does, and we are interested in the last resource commit operation.  Hence we want MYSQL to be the only XA datasource and we want to add the cache(Infinispan) as a sycnhronisation listener.

Ref :https://docs.jboss.org/author/display/ISPN/JTA+synchronization

https://docs.jboss.org/author/display/ISPN/Infinispan+transactions  (last section - Enlisting syncronization)

Looking at few of the older posts I was not sure if Atomikos supports this ?

It looks like its more a JTA specific thing. When I look at other transaction managers from Jboss and Bironix , they seem to support this for multiple resources. So was keen to know if Atomikos supports this ?



Reference from a old thread

default82df.html?community.6.250.5
Sudheer Krishna Send private email
Thursday, May 10, 2012
 
 
We support this at about the same level as other products: this gambit is not as safe as the full XA solution. I would not recommend it with either product.

If you are looking for a way to design around XA then maybe our consulting services can offer better alternatives - depending on your needs?

HTH
Guy Pardon Send private email
Thursday, May 10, 2012
 
 
Hi Guy,

Thanks for the quick response.

Since we are using infinispan(jboss cache), and we use it similar to the way hibernate uses a second level cache ,we feel registering this as a synchronisation may help us optimize.

But when I look at the atomikos documentation, there was no clear reference if it is supported or not. Looking at the old forum posts suggested other wise.
(default82df.html?community.6.250.5)

A quick note on the support - we are just a startup building the product and hence not sure at this state we will be able to afford suuport.
Sudheer Krishna Send private email
Friday, May 11, 2012
 
 
We do support Synchronizations, and we do not even need the "Last Resource" trick to do that.

HTH
Guy Pardon Send private email
Tuesday, May 22, 2012
 
 

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

Other recent topics Other recent topics