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.

Joe

Reply via email to