Hello,
I am trying to stop/start a web application deployed on JBoss using the MBeanServerConnection(JMX). This code works perfect in JBoss4 version and only "start" fails in JBoss5 version and the error thrown is as given below. Is there any workaround for this issue?
Thanks,
Keshav
Code:
Context ctx = new InitialContext();
MBeanServerConnection mconn = (MBeanServerConnection) ctx.lookup("jmx/invoker/RMIAdaptor");
ObjectName name = new ObjectName(--Application to be start/stop--);
mconn.invoke(name, command, null, null;
ERROR: Lifecycleexception: Webctxloader cannot be restarted