[Dev] What is the method to shutdown the carbon server programmatically?

2014-02-03 Thread Chan
Hi all, What is the proper method to programmatically stop the carbon server? System.exit(0) does the trick but doesn't shutdown gracefully. I looked up on a service wrapper[1] that supports this features. I want to trigger a graceful shutdown as you do with Ctrl+C. Cheers~ [1] -

Re: [Dev] What is the method to shutdown the carbon server programmatically?

2014-02-03 Thread Nuwan Wimalasekara
Yes. It is deployed as a OSGI service as well. Thanks, Nuwanw On Mon, Feb 3, 2014 at 4:54 PM, Chan duli...@wso2.com wrote: Do we have an OSGi service? I am trying to do this from a jaggery app. Cheers~ On Mon, Feb 3, 2014 at 4:50 PM, Nuwan Wimalasekara nuw...@wso2.comwrote: Hi Chan,

Re: [Dev] What is the method to shutdown the carbon server programmatically?

2014-02-03 Thread Chan
Thanks Nuwan On Mon, Feb 3, 2014 at 5:02 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Yes. It is deployed as a OSGI service as well. Thanks, Nuwanw On Mon, Feb 3, 2014 at 4:54 PM, Chan duli...@wso2.com wrote: Do we have an OSGi service? I am trying to do this from a jaggery app.