事务问题:EJB 服务端点在部署描述符规定的事务上下文中运行。
Transaction considerations: An EJB service endpoint runs in a transaction context specified in the deployment descriptor.
由于需要管理缓存着的状态,有状态的组件可能会在Web上下文中出现问题,比如,发生回滚时许多应用都会出问题,因为状态并没有和事务绑定起来。
Stateful components can be problematic in a web context because of managing cached state for example - many applications break when a rollback occurs because the state isn't tied to the transaction.
应用推荐