This content has been marked as final.
Show 4 replies
-
1. Re: Destroy POJO
blabno Dec 17, 2009 4:06 PM (in response to sait)Please tell us why do you need to destroy the component ? Maybe you just need to remove it from the context.
-
2. Re: Destroy POJO
sait Dec 17, 2009 6:02 PM (in response to sait)For example, a session scoped-bean which occupies huge memory is created. After a while, this beans need to be destroyed in a method. How can I destroy this bean or removed from the context?
-
3. Re: Destroy POJO
blabno Dec 18, 2009 12:34 PM (in response to sait)Removing from context :
org.jboss.seam.contexts.Contexts.removeFromAllContexts(componentName)
Note that component removal should be done automatically whe context ends. If you need to remove it manually there is a big chance that you have placed it in to broad context. Reconcider your decision.
-