geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Dillon <ja...@planet57.com>
Subject Re: Retrieve server status from commandline
Date Mon, 05 May 2008 18:38:25 GMT
You could also look at the geronimo-maven-plugin, the geronimo:start- 
server goal does wait for the server to be started before allowing  
builds to continue.  This is what we use in our testsuite to automate  
start/deploy operations.

--jason


On May 5, 2008, at 11:55 PM, Jarek Gawor wrote:

> Can you please open a JIRA on this issue?
>
> There is no such command line tool right now but there is some
> existing Java code that might help you with getting the server status.
> Take a look at org.apache.geronimo.commands.ServerProxy in
> geronimo-commands module. You should be able to do the following
> (roughly):
>
> ServerProxy proxy = new ServerProxy("localhost", 1099, "system",  
> "manager");
> while(!proxy.isFullyStarted()) {
>  Thread.sleep(1000 * 10);
> }
> // if you are here, the server is fully started
>
> Jarek
>
> On Mon, Apr 28, 2008 at 11:48 AM, Jan Vandieken  
> <jan.vandieken@gmx.de> wrote:
>> Hi
>>
>> I am currently trying to automate the start & deployment for a  
>> application running on IBM WAS CE (which uses the Geronimo).
>>
>> Now I am strugelling to figure out a way to detect from the windows  
>> commandline when the server has been started sucessfully.
>>
>> For the user this is ovious, once the cmd-line says server started.  
>> But how can I script that to wait with the deployment step until  
>> the server has been started?
>>
>> Is there any command like serverstatus.bat or shutdown.bat --status  
>> I might use? Is there maybe an existing class in a jar file I could  
>> call to obtain the proper status of the server?
>>
>> I saw this discussion in the developer mailing list:
>> http://www.mail-archive.com/dev@geronimo.apache.org/msg58189.html
>> Have there been any improvements so far?
>>
>> Thanks
>> Jan
>> --
>> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
>> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>>


Mime
View raw message