|
From: Leif M. <le...@ta...> - 2003-10-07 05:44:32
|
Daniel,
In addition to Sal's suggestion of the JMX server, you might also
want to take a look
at the WrapperActionServer. It is not quite as fancy, but it will allow
you to request
a restart, thread dump etc, via telnet with just a few lines of code.
http://wrapper.tanukisoftware.org/doc/english/javadocs.html
Cheers,
Leif
Sal Ingrilli wrote:
>we embedded the sun jmx server into our app & restart the service through
>the wrapper jmx interface.
>that's also how we issue thread dumps when running as a service.
>
>-----Original Message-----
>From: wra...@li...
>[mailto:wra...@li...]On Behalf Of Daniel
>Lemus
>Sent: Wednesday, October 01, 2003 3:44 PM
>To: wra...@li...
>Subject: [Wrapper-user] How Does One... Remotely Restart a JVM
>
>
>Here's the situation:
>I have a process that the wrapper runs as a service, but the service is on
>another box. I also do not have permission to restart the service. In
>cases where I have a patch to push out on the server, I have to wait for the
>admin on the box to restart my service (as to reload the JVM and to load my
>changes).
>
>This might be correct in a production environment, but our development
>environment is the same (I have to wait for someone else to restart the
>service). This gets a bit annoying (on the admin's side to), so here is my
>question:
>-Is there a way to remotely call "something" to restart the JVM on demand?
>
>I have read that there is a WrapperManager that has a restart() method, but
>how can that be called? Would I have to have another service running that
>has the sole purpose of restarting JVMs?
>
>(This is on an NT 2000 box, and there is no chance to give me permission to
>start/stop services on their boxes).
>
>Thanks for any assistance.
>
>-Dan
>
>
|