Use LiftRules.unloadHooks.append(myShutdownHook)

>From LiftRules.scala:

 /**
   * Hooks to be run when LiftServlet.destroy is called.
   */
  val unloadHooks = RulesSeq[() => Unit]

alex

On Sun, Dec 13, 2009 at 6:45 PM, Dave Briccetti <[email protected]> wrote:

> Very helpful suggestions. Thanks.
>
> How can I hook into Web app shutdown/undeployment so I can shut down
> the thread pool?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to