Hi,
I have an application scoped bean and want to do some cleanup when
the application is shutdown (undeployed). Is there a way to register
the bean somehow with the application context like I can register a
session scoped bean with the session context?
Regards
Helmut
you can access it with #{applicationScope.beanName}
2007/2/21, H. Swaczinna <[EMAIL PROTECTED]>:
Hi,
I have an application scoped bean and want to do some cleanup when
the application is shutdown (undeployed). Is there a way to register
the bean somehow with the application context like I can
you can use a servletcontext listener to do some cleanup on shutdown
-M
On 2/21/07, H. Swaczinna <[EMAIL PROTECTED]> wrote:
Hi,
I have an application scoped bean and want to do some cleanup when
the application is shutdown (undeployed). Is there a way to register
the bean somehow with the appl
Ok, but how can I access (find) the bean from such servletcontext
listener? There's no FacesContext at that time I think.
Regards
Helmut
>you can use a servletcontext listener to do some cleanup on shutdown
>
>-M
>
>On 2/21/07, H. Swaczinna <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I have an appl
contextDestroyed(ServletContextEvent sce)
{
ServletContext servletCxt = sce.getServletContext()
MyBean mb = (MyBean) servletCxt.getAttribute("nameOfTheManagedBean");
mb.doIt();
}
On 2/21/07, H. Swaczinna <[EMAIL PROTECTED]> wrote:
Ok, but how can I access (find) the bean from such servletconte
Ok, looks simple. Thank you.
>contextDestroyed(ServletContextEvent sce)
>{
>
> ServletContext servletCxt = sce.getServletContext()
> MyBean mb = (MyBean) servletCxt.getAttribute("nameOfTheManagedBean");
> mb.doIt();
>
>}
>
>On 2/21/07, H. Swaczinna <[EMAIL PROTECTED]> wrote:
>> Ok, but how can I
6 matches
Mail list logo