[jboss-user] [JBoss Seam] - Re: renew the @Factory
bsmithjj
do-not-reply at jboss.com
Wed Sep 5 12:48:47 EDT 2007
Let's say your Seam component that contains this @Factory is session scoped; then you need to remove the current license from the session context. Example:
| public String persistAndContinue(){
| super.persist();
| Contexts.getSessionContext().remove("license");
| setInstance(new License());
| }
|
Hope that helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081417#4081417
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081417
More information about the jboss-user
mailing list