[jboss-user] [JBoss Seam] - Re: Let's use component scope before lookupInStatefulContext

pete.muir@jboss.org do-not-reply at jboss.com
Fri Oct 26 08:22:36 EDT 2007


So, you can skip the lookupInStatefullContexts if you use Component.getInstance("foo", SESSION); 

You can use this in your app using @In(scope=SESSION) Foo foo;

However you still have to do a lookupInStatefulContexts when injecting objects into JSF.

You should raise JIRA issues if you spot Seam internally not explicitly scoping getInstance() inside instance methods.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099258#4099258

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099258



More information about the jboss-user mailing list