When transaction starts and finally ?
Hi, i have a questiom from container transaction.
If i have a
servlet-->businessdelegate-->sessionejb-->entitybean-->database
Who begin a transaction ? and when the same finally ?
/********* Servlet *********/...
call... businesDelagate.actions(XXX);
/********* BusinessDelegate *********/ ...
publicvoid actions(XXX){
call....
sessionFacade.insert(XXX);
sessionFacade.update(XXX);//only to explain obvious
}
/********* SessionFacade *********/
publicvoid insert(XXX){
JPA operations with entities...
}
publicvoid update(){
JPA operations with entities...
}
In this scenario what the behaviour expected using a container transaction.
Thanks!!

