tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glenn Nielsen <gl...@mail.more.net>
Subject Re: custom web app classloader
Date Fri, 31 Oct 2003 13:08:37 GMT
Jwahar Bammi wrote:
> Thanks for your quick reply glenn, I was thinking the same way. Please could
> you confirm the mechanics of hooking the classloader into Tomcat
> 
> - once I write the class, I tell tomcat to use it by specifying it in the
> <Loader> tag of a <Context> in server.xml

Yes.  The next releases of Tomcat 4.1 and 5 will also allow a <Loader> to be
nested inside the <DefaultContext>.

> - my class itself goes into $CATALINA_HOME/server/lib

Yes, or in $CATALINA_HOME/common/lib

> the docs don't make it clear what the mechanics should be
> 
> 
> thanks again
> bammi
> 
> 
> -----Original Message-----
> From: Glenn Nielsen [mailto:glenn@mail.more.net] 
> Sent: Thursday, October 30, 2003 10:20 PM
> To: Tomcat Users List
> Subject: Re: custom web app classloader
> 
> I have done this but I started by extending
> org.apache.catalina.loader.WebappLoader,
> then overriding anything I needed to customize.
> 
> Regards,
> 
> Glenn
> 
> Jwahar Bammi wrote:
> 
>>I want to write my own custom web application class loader, for Tomcat
> 
> 4.1*
> 
>>(and hopefully it will continue to work for Tomcat 5*). From the precious
>>little info that is available, I have gleaned the following:
>>
>> 
>>
>>- the class I write should implement org.apache.catalina.Loader interface.
>>
>>- once I write the class, I tell tomcat to use it by specifying it in the
>><Loader> tag of a <Context> in server.xml
>>
>>- my class itself goes into $CATALINA_HOME/server/lib
>>
>> 
>>
>>Are my assumptions above correct?
>>
>> 
>>
>>It would be a real bonus to see an example. I am sure more than one person
>>in this community has done this before.
>>
>>Any words of advice?
>>
>> 
>>
>>Advanced Thanks,
>>
>> 
>>
>>Jwahar Bammi
>>
>>Memento, Inc.
>>
>>bammi@memento-inc.com
>>
>> 
>>
>> 
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message