No sure how does the wait-for-server command implement it, but I think try to connect the server via JMX is also a way to check whether the kernel is running.Ivan
2009/4/30 RickI <a...@worker.com> > > Thanks RunHua, > Do you know any gbean that can be use to get server state similar with > wait-for-server command? > > Thanks, > > Ricky > > > RunHua Chi wrote: > > > > Hi Rickl: > > > > I thinks you might need to look into the source code of the following > > Gshell > > command: > > > > geronimo/wait-for-server > > > > The *geronimo/wait-for-server* command is used to verify if the server > has > > started in the given time (in seconds). The default timeout is 60 > seconds > > > > Jeff C > > > > On Tue, Apr 28, 2009 at 7:49 AM, RickI <a...@worker.com> wrote: > > > >> > >> Hi All, > >> How do I check geronimo instance state from java code after being > >> started. > >> I starting separate instance and would like to know whether its > >> successfully > >> started before doing deploying a module. > >> Starting and deploying a module are triggered from java code. > >> > >> Thanks, > >> > >> Ricky > >> -- > >> View this message in context: > >> http://www.nabble.com/Check-server-state--tp23267578s134p23267578.html > >> Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Check-server-state--tp23267578s134p23302382.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > > -- Ivan