Anybody can explain the distinguish among the stateful context scope types listed below. If I don't use long-running conversation, their functionalities are same? Thank you very much in advance.
@Name("myAction") @Stateful @Scope(ScopeType.EVENT) public class MyActionBean implements MyAction { ... } @Name("myAction") @Stateful public class MyActionBean implements MyAction { ... } @Name("myAction") @Stateful @Scope(ScopeType.CONVERSATION) public class MyActionBean implements MyAction { ... }
Well, the default scope of a stateful bean is "conversation" and with non-long-running conversation the conversation lives for (just slightly longer?) the same time as the request.
So I would say they are the same in this case.