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!!

[1268 byte] By [Solraca] at [2007-11-27 9:55:24]
# 1
With EJB container-managed transactions, the transaction is started when the sessionejbbusiness method is called and the commit happens when the sessionejb business methodcompletes.
ksaksa at 2007-7-13 0:25:22 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
thanks Ksaks.
Solraca at 2007-7-13 0:25:22 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...