Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Shutdown Virgo programmatically
Shutdown Virgo programmatically [message #988216] Wed, 28 November 2012 21:21 Go to next message
Eduardo Frazão is currently offline Eduardo Frazão
Messages: 118
Registered: January 2012
Senior Member
Hi folks. Can I shutdown a Virgo instance programmatically, from a bundle inside the user region? There some ready service? Or can I pick the bundle 0 and invoke a shutdown?

Thanks!
Re: Shutdown Virgo programmatically [message #988217 is a reply to message #988216] Wed, 28 November 2012 21:34 Go to previous messageGo to next message
Miles Parker is currently offline Miles Parker
Messages: 1340
Registered: July 2009
Senior Member
Sure, for example we implement this in the Virgo IDE. But there are a number of pieces to the interaction, it's not a matter of a simple API call. If you get totally lost let us know and I'll try to give you a better hint about how to accomplish it.

[Edit] I was thinking of this from remote API, there might be an easier way from user region proper. Or OTOH, it might be prohibited. Wink

cheers,

Miles

[Updated on: Wed, 28 November 2012 21:35]

Report message to a moderator

Re: Shutdown Virgo programmatically [message #988510 is a reply to message #988217] Fri, 30 November 2012 10:13 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
The shutdown mbean is provided and is which is what the shutdown scripts use.
Re: Shutdown Virgo programmatically [message #988559 is a reply to message #988510] Fri, 30 November 2012 14:10 Go to previous message
Eduardo Frazão is currently offline Eduardo Frazão
Messages: 118
Registered: January 2012
Senior Member
Hi Miles and Glyn!

The MBean approach works!!

Thank you by your help!!!
Previous Topic:javax.net.ssl and jersey dependency
Next Topic:Fat client remoting with Virgo
Goto Forum:
  


Current Time: Tue Sep 23 08:35:28 GMT 2014

Powered by FUDForum. Page generated in 0.01999 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software