You can look up the component and automatically create it if it doesn't exist
like:
MyBean myBean = Component.getInstance("myBean", true);
Then set it to whichever context you want via:
Contexts.getSessionContext().set("myBean", myBean);
The above is not a perfect example, because if the myBean is ScopeType.SESSION,
there is no reason to set it again in the Session context.
-Samuel
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097905#4097905
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097905
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user