You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Jeffrey J. Gaynor" <jg...@ncsa.uiuc.edu> on 2006/02/27 18:06:49 UTC

Thread question fo tomcat

Hi,

I have a wck implementation, which works fine. I would like to add caching
to it in order to make it snappier, but the problem I am running into is
that my cache thread is not terminated when tomcat shuts down, leaving me
to have to manually kill the server each time. Is there a hook someplace
in Tomcat to accomplish this? I've looked through the documentation and
don't see anything obvious. 

Failing that, is there a better way to do this rather than just have a
background thread periodically update the cache? Suggestions welcomed.

Cheers,

j




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


Re: Thread question fo tomcat

Posted by Alex Jalali <al...@ubudesign.com>.
I'm sorry I don't know what wck is :) Also I don't know of other ways to
do this except to either use shell script to start tomcat and other apps
and stop them together. Another option is to use the java to start and
stop tomcat as an external proccesses???

sorry maybe others know of better way..






> I'm trying to use the WCK so I don't have to write a servlet. Is there
> another way?
>
> Thanks!
>
> j
>
>
>
> On Mon, 27 Feb 2006, Alex Jalali wrote:
>
>> you could implement the destory() method of a servlet. Tomcat calles
>> this
>> before going down.
>>
>>
>>
>>
>> > Hi,
>> >
>> > I have a wck implementation, which works fine. I would like to add
>> caching
>> > to it in order to make it snappier, but the problem I am running into
>> is
>> > that my cache thread is not terminated when tomcat shuts down, leaving
>> me
>> > to have to manually kill the server each time. Is there a hook
>> someplace
>> > in Tomcat to accomplish this? I've looked through the documentation
>> and
>> > don't see anything obvious.
>> >
>> > Failing that, is there a better way to do this rather than just have a
>> > background thread periodically update the cache? Suggestions welcomed.
>> >
>> > Cheers,
>> >
>> > j
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: slide-user-help@jakarta.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>


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


Re: Thread question fo tomcat

Posted by "Jeffrey J. Gaynor" <jg...@ncsa.uiuc.edu>.
I'm trying to use the WCK so I don't have to write a servlet. Is there
another way?

Thanks!

j



On Mon, 27 Feb 2006, Alex Jalali wrote:

> you could implement the destory() method of a servlet. Tomcat calles this
> before going down.
> 
> 
> 
> 
> > Hi,
> >
> > I have a wck implementation, which works fine. I would like to add caching
> > to it in order to make it snappier, but the problem I am running into is
> > that my cache thread is not terminated when tomcat shuts down, leaving me
> > to have to manually kill the server each time. Is there a hook someplace
> > in Tomcat to accomplish this? I've looked through the documentation and
> > don't see anything obvious.
> >
> > Failing that, is there a better way to do this rather than just have a
> > background thread periodically update the cache? Suggestions welcomed.
> >
> > Cheers,
> >
> > j
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: slide-user-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 


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


Re: Thread question fo tomcat

Posted by Alex Jalali <al...@ubudesign.com>.
you could implement the destory() method of a servlet. Tomcat calles this
before going down.




> Hi,
>
> I have a wck implementation, which works fine. I would like to add caching
> to it in order to make it snappier, but the problem I am running into is
> that my cache thread is not terminated when tomcat shuts down, leaving me
> to have to manually kill the server each time. Is there a hook someplace
> in Tomcat to accomplish this? I've looked through the documentation and
> don't see anything obvious.
>
> Failing that, is there a better way to do this rather than just have a
> background thread periodically update the cache? Suggestions welcomed.
>
> Cheers,
>
> j
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>


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