Should I give it ptemp as the pool? Or should I create a new one in post_config()?
On Fri, Jun 7, 2013 at 9:14 AM, Joe Lewis <j...@joe-lewis.com> wrote: > 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 >