geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Mulder <ammul...@alumni.princeton.edu>
Subject Re: Start command doesn't reach execute method
Date Mon, 27 Oct 2003 00:56:49 GMT
On Sun, 26 Oct 2003, Emerson Cargnin wrote:

> While trying to debug geronimo, when the debugger reachs the following code :
> 
> ThreadGroup group = new ThreadGroup("Geronimo");
> Thread mainThread = new Thread(group, main, "Main-Thread");
> mainThread.start();
> mainThread.join(); // stops here
> return Command.SUCCESS;
> 
> It never gets to the return command as it stay paused in Thread.join() command. 
> 
> 
> 
> Is this expected?

	I assume so -- Thread.join() doesn't return into the thread you
call it on finishes.  So it looks like the main thread sets up and starts
a Geronimo thread, and then waits for it to finish (which would 
presumably happen when the server shuts down).

Aaron


Mime
View raw message