tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk" <>
Subject RE: [PROPOSAL] RegisterNatives
Date Sun, 09 Jun 2002 19:37:09 GMT

> -----Original Message-----
> From: Ignacio J. Ortega [] 
> Sent: 9. lipanj 2002 20:20
> To: 'Tomcat Developers List'
> Subject: RE: [PROPOSAL] RegisterNatives
> > that out. The
> > apr_initialize for IIS should be called
> > IMO from DllMain  in jk_isapi_plugin, but I'm not familiar 
> with that.
> > 
> I think DLLMain is not a very good place to put apr_initialize, in IIS
> the DLL never gets unloaded after the IIS process start.. and if we
> finally come with a way to restart the whole jk2, 
> apr_initialize should
> be called at Filter or Extension start, anyway there are 3 call to
> apr_initialize, there is anoher at jk_env.. i will get rid of that one
> too..

The apr_initialize is IMO intended to be the pool container for the
entire process life.
The concept of subpools is meant to be used for inproc restarting like
Apache do. There is no need to that with
But if the Filter or Extension start is unique call to the dll then it's
matter of choice I think.

Consecutive calls to apr_initialize only increments the reference count,
and to call the 'true' apr_terminate that count must be 1.


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

View raw message