0 Replies Latest reply on May 20, 2003 2:14 AM by Lars Hoss

    How to restart a jetty webapp via RMIAdaptor?

    Lars Hoss Newbie

      Hi!

      Last days I played around with the Ant extension "JMX task" from varia. Unfortunately it was not possible to restart a webapp through this task because the server failed with many errors, mostly "javax.management.InstanceAlreadyExistsException".
      Therefore I decided to play with the RMIAdaptor interface directly. I was able to figure out how to lookup the required MBean and how to invoke operations on it.
      Unfortunately this doesn't work either :-(
      What makes me astonished is that invoking the same operations through the HTMLAdaptor (jmx-console) works fine. Is it actually possible to restart a webapp via RMIAdaptor and has anyone done it?
      Any idea or hints what I might do wrong?