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?
Which operations?
There should be no difference between
the RMI and HTML adaptor both invoke
the MBeanServer.
Regards,
Adrian