Originally posted by norman richards:
Sure. Go into the jmx-console (hit /jmx-console on your box). Find the MBean for whatever context your webapp is deployed under. The exact name will depend on what version of JBoss you have and what web container you are using, but for "MyApp" you should see something like: JBossWebApplicationContext=3,Jetty=0,context=/MyApp. Click on the MBean and invoke the stop() method. Your webapp should be stopped.
(or you could also undeploy it by deleting your WAR file from the deploy directory)
Norman,
For my webapplication testapp.war I found the following entries in the console
J2EEApplication=null,J2EEServer=Local,WebModule=testapp.war,j2eeType=Servlet,name=default
J2EEApplication=null,J2EEServer=Local,WebModule=testapp.war,j2eeType=Servlet,name=invoker
J2EEApplication=null,J2EEServer=Local,WebModule=testapp.war,j2eeType=Servlet,name=jsp
J2EEApplication=null,J2EEServer=Local,j2eeType=WebModule,name=testapp.war
I tried invoking stop on each of the above Mbean but the web application was able to receive the request(the
JSP page in application was served)
Can you tell me where lies the problem?
Thanks
Pradeep