The Server lifecycle listener interface may come in handy for such use
cases :
http://docs.sun.com/app/docs/doc/819-3659/beamc?a=view
hth
Shreedhar
glassfish_at_javadesktop.org wrote:
> hello,
>
> I have an enterprise application with a lucene index. the index is accessed tru a singleton, and a facade EJB.
>
> when glassfish shuts down - I need something like a shutdown hook, so I can close the index.
>
> how can I accomplish this?
>
> Best,
> [Message sent by forum member 'segfault2007' (segfault2007)]
>
> http://forums.java.net/jive/thread.jspa?messageID=283495
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>