This content has been marked as final.
Show 2 replies
-
1. Re: @Out scope question
gavin.king Oct 28, 2005 6:06 AM (in response to idrop)Perhaps you need to add @Intercept(ALWAYS)
-
2. Re: @Out scope question
idrop Oct 28, 2005 10:45 AM (in response to idrop)Doh! Many thanks Gavin, that works.
I added:@Stateful @Name("wow") @Interceptor(SeamInterceptor.class)@Intercept(InterceptionType.ALWAYS)@Conversational(ifNotBegunOutcome = "home") @LoggedIn public class WOWImpl implements WOW, Serializable { @In(scope = ScopeType.SESSION, required = true, create = false) private Participant participant; @In(create = true, required = true) private Context sessionContext;
And now my Participant entity has been injected into this SFSB from session context. So no more need for this:
participant = (Participant) Contexts.getSessionContext().get("participant");
Thanks again,
Phil