开发者

EJB @Stateless + Seam @Scope(ScopeType.CONVERSATION) = @Stateful?

开发者 https://www.devze.com 2023-02-15 08:45 出处:网络
Im a new SEAM developer and for sure im really enjoyin开发者_如何学Cg the platform. im wondering wether a stateless session bean plus conversation scope has the same semantic by stateful session bean

Im a new SEAM developer and for sure im really enjoyin开发者_如何学Cg the platform.

im wondering wether a stateless session bean plus conversation scope has the same semantic by stateful session bean ?

the EJB Client in this context is the seam, right ? so using conversation scope, the ejb bean used by the client ( seam component ) will be the same during the conversation, this way the state will be preserved until the conversation finish.

is it correct ?


No. Stateless session beans always live in the stateless context.


I think Stateless session bean is always in Stateless scope, no way to set to Conversation scope.

0

精彩评论

暂无评论...
验证码 换一张
取 消