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

1.4k Views Asked by At

Im a new SEAM developer and for sure im really enjoying 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 ?

2

There are 2 best solutions below

0
On

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

0
On

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