[prev in list] [next in list] [prev in thread] [next in thread] 

List:       geronimo-dev
Subject:    Re: Start command doesn't reach execute method
From:       Jason Dillon <jason () coredevelopers ! net>
Date:       2003-10-27 8:45:19
[Download RAW message or body]

Yup ;-)  The return does not mean too much, except that a return value 
is required from the Command interface.  At some point, when the 
interactive interpreter bits are in-place, the join can be dropped to 
allow a user to execute more commands on the running instance.

--jason


On Sunday, October 26, 2003, at 04:56  PM, Aaron Mulder wrote:

> 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
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic