Hi Guys,
Please clarify this...
Session Bean psudo code
//this method has attribute = REQUIRED
public void method1(){
//statement 1 update some record
method2();
//statement 2
}
//this method has attribute = REQUIRED NEW
public void method2(){
//statement 3 update some other record
//exception is thrown
//statement 4
}
does statement 1,2,3,4 will happen in same transaction context OR 1,2 in different context and 3,4 in different context IF I CALL method1 FROM REMOTE INTERFACE
Thanx in Advance
Please clarify this...
Session Bean psudo code
//this method has attribute = REQUIRED
public void method1(){
//statement 1 update some record
method2();
//statement 2
}
//this method has attribute = REQUIRED NEW
public void method2(){
//statement 3 update some other record
//exception is thrown
//statement 4
}
does statement 1,2,3,4 will happen in same transaction context OR 1,2 in different context and 3,4 in different context IF I CALL method1 FROM REMOTE INTERFACE
Thanx in Advance