Atomikos Forum

Propagation and Atomikos

Hi all,

First, sorry for my poor english, i will do every efforts to be undestood.

So, i want to use Atomikos as a transaction manager.

But i think  i don't undestang something about Transaction Manager :

Is Atomikos in charge of transaction propagation ?

For example, if i want to create a new transaction in REQUIRES_NEW, how can i do ?

I want also say that i can't integrate Spring into my project.
Geoffrey Levaray Send private email
Monday, March 19, 2012
 
 
Maybe i should added an example :

Can I do this with Atomikos :

public main() {

    // create a new transaction (called T1);
   
    methodA();
    methodB();

    // commit and close T1
}

public methodA() {
    // Do some stuff with T1
}

public methodB() {

    // create a new transaction (called T2);
    // Do some stuff with T2
    // commit and close T2
}
Geoffrey Levaray Send private email
Monday, March 19, 2012
 
 
Imho Atomikos is not resposible for propagation.
E.g. you can use spring (ant may use JBoss Tx, Geronimo or Atomikos as implementation) to manage the propagation.

If you can't use spring, you have to do it by yourself, but its imho not atomikos who must do this.

So in your example you have to suspend the current running global tx, create a new one, commit this one, and must resume the suspended one - all up to you.
I may be wrong, but afaik that is what spring does for you if you you the container managed tx stuff there.
Torsten Krah Send private email
Tuesday, March 20, 2012
 
 
Thans for your answer.

I have continued my researches about Atomikos, and i'm agree with you.
In fact, as Atomikos is an transaction manager, what i need is a CMT, a container managed transaction, which allows to manage transaction as i want.
Spring is a CMT, and EJB is another one.

Thanks for your help !
Geoffrey Levaray Send private email
Wednesday, March 21, 2012
 
 

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

Other recent topics Other recent topics