commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Thomas <>
Subject Re: Jsvc start/stop and threads
Date Mon, 05 Jun 2017 10:27:45 GMT
If you're terminating your thread, you'll simply need to start a new one.


On 5 June 2017 at 11:24, Andrea Lo Pumo <> wrote:

> I am creating a thread in init(), and starting it in start().
> In the user guide, there is written:
> "void stop(): Inform the Thread to terminate the run(), close the
> ServerSockets".
> So in stop() I am interrupting my thread.
> In the apidocs, there is written "the container may restart the Daemon by
> calling start() after stop().". But, if my thread has finished, it cannot
> be restarted again. (Thread.start() cannot be called after the thread has
> completed execution).
> So, what should I do?
> Thanks.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message