httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Lewis <>
Subject Re: Tear down of module on server stop
Date Fri, 07 Jun 2013 15:14:09 GMT
On 06/07/2013 09:09 AM, Sean Beck wrote:
> OK good to know.
> Would I use apr_pool_cleanup_register in register hooks?

I'd suggest setting up your ActiveMQ connection in post_config, and then 
calling apr_pool_cleanup_register() when you set it up.  That way, your 
cleanup function will be called when the pool associated with your 
ActiveMQ data is going away.

You can do that all in a handler function, too, but the lifetime of the 
ActiveMQ connection will be a lot shorter.


View raw message