axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damitha Kumarage <>
Subject Re: using APR in Axis2/C
Date Tue, 06 Jul 2010 07:28:00 GMT
Sam Carleton wrote:
> On Fri, Jun 25, 2010 at 10:39 PM, Sam Carleton 
> < <>> wrote:
>     All my Axis2/C services run in Apache.  Is there any way to get at
>     the apr_pool_t parameter in the service so I can use APR
>     functions?  The main functions I am looking for are things like
>     apr_dir_open, apr_dir_close,apr_dir_read, and apr_dir_rewind.
> I did some hunting and it looks like I can use: 
> env->allocator->local_pool.  Is that correct?
Yes you can.
> Also, I was noticed that the axis2_handler is calling 
> apr_pool_create_ex() and NOT sending in a parent.  From what I 
> understand of apr, modules should not be creating their own pool, but 
> creating sub pools off of the main application.  What is the reasoning 
> for Axis2 creating it's own pool and not a sub pool off of Apache?
As I remember engine wanted to make sure that the pool is freed just 
after the request is processed. We could not achieve that keeping a 
subpool. Note that  the pool is destroyed  just after the worker has 
processed the request.

> Sam


Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; "

blog: "

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message