-
1. Re: @Destroy annotated method on Application Scoped componen
bytor99999 Jul 10, 2007 5:36 PM (in response to bytor99999)Maybe if I used one of the built-in events like
org.jboss.seam.preDestroyContext.Application
or
org.jboss.seam.preRemoveVariable.
to point to that method that right now has the @Destroy annotation. -
2. Re: @Destroy annotated method on Application Scoped componen
pmuir Jul 10, 2007 5:44 PM (in response to bytor99999)I would do (1). It does work right? If not post back :)
-
3. Re: @Destroy annotated method on Application Scoped componen
bytor99999 Jul 10, 2007 6:24 PM (in response to bytor99999)Using "org.jboss.seam.preDestroyContext.Application" does not call the method at all, I then assumed it was because "Application" should be "APPLICATION"
so
Using "org.jboss.seam.preDestroyContext.APPLICATION" we get the following exception.15:18:45,718 INFO [TomcatDeployer] undeploy, ctxPath=/embedded-console, warUrl=.../tmp/deploy/tmp6323embedded-console-e xp.war/ 15:18:45,734 ERROR [[/embedded-console]] Exception sending context destroyed event to listener instance of class org.jbo ss.seam.servlet.SeamListener java.lang.IllegalStateException: no event context active at org.jboss.seam.web.ServletContexts.instance(ServletContexts.java:40) at org.jboss.seam.web.Parameters.getRequestParameters(Parameters.java:39)
And that kind of looks like the same thing that we got for @Destroy "no event context active"
Wait, if this is a redeploy, so I am overwriting the .war file, is the original Class still in the ClassLoader for it to call the @Destroy or event method? Or is it gone when JBoss AS/Tomcat undeploys it? Maybe that has something to do with what we are seeing. Just a wild guess. -
4. Re: @Destroy annotated method on Application Scoped componen
pmuir Jul 14, 2007 6:43 PM (in response to bytor99999)Mark, sorry, for not replying sooner. What you are doing should work, that error (normally) means that Seam hasn't set up it's lifecycle properly. Can file a JIRA issue so that we don't loose this one.
-
5. Re: @Destroy annotated method on Application Scoped componen
bytor99999 Jul 16, 2007 10:42 AM (in response to bytor99999)"pete.muir@jboss.org" wrote:
Mark, sorry, for not replying sooner. What you are doing should work, that error (normally) means that Seam hasn't set up it's lifecycle properly. Can file a JIRA issue so that we don't loose this one.
Thanks, so who will create the JIRA? I think you might do that because it looks like you would word it better so that your team understands what is happening. :) -
6. Re: @Destroy annotated method on Application Scoped componen
gavin.king Jul 16, 2007 11:49 AM (in response to bytor99999)I've fixed this in CVS, but please test it for me, thanks.
-
7. Re: @Destroy annotated method on Application Scoped componen
bytor99999 Jul 17, 2007 11:56 AM (in response to bytor99999)Thanks. Sure, where can I find the nightly build?