[jboss-user] [JBoss Seam] - Re: How to outject without @Out annotation
smendenh@redhat.com
do-not-reply at jboss.com
Tue Oct 23 10:06:28 EDT 2007
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
More information about the jboss-user
mailing list