今天研究ejb,资料中提到如果sessionBean实现SessionSychronization接口。对于SessionSychronization接口的方法书上的描述是这样的
1. aferBegin() - Container call this method to inform the instance of the ejb that the transaction is started.2. beforeCompletion() - To inform the bean that the transaction is about to be committed.3. afterCompletion() - Called to inform that the transaction is completed.请问上述描述中transaction到底是什么意思?
我觉得不太可能是数据库的事务,因为sessionBean和数据库的操作应该是分离的,EJB的设计者不应该会让数据库的transaction和sessionBean有太多的耦合。
我猜测可能这个transaction是代表http的请求,请高手解答