On Oct 4, 2006, at 2:27 PM, maildli wrote:

>
> Hi,
>
> Does any body know how to shutdown a web application using Java  
> code?  I am
> working on a project that it does an initialization check right  
> after an
> applicataion starts up, if the init failed, then the web  
> application should
> be shut down automatically.  Does anybody knows how to make such  
> function
> call?

That function is available in JMX.  If you get the WebAppMXBean, you  
can call stop() on it.

The Javadoc is at http://caucho.com/resin-javadoc/com/caucho/ 
management/server/WebAppMXBean.html

The stop() method is part of the DeployControllerMXBean.

-- Scott

>
>
> -- 
> View this message in context: http://www.nabble.com/shutdown-an- 
> webapp-in-resin-tf2385177.html#a6648741
> Sent from the Resin mailing list archive at Nabble.com.
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to