stopping sgs with ant

This is probably not a sgs specific question, just my ignorance, but…

I’ve created an ant script (that I’m running through eclipse) that builds all my stuff and creates me a client and server jar. I also have a target that will then run the sgs server with my shiny new jar. However I don’t know how to then stop the sgs cleanly. If I just stop the ant script i the consile window of eclipse the sgs server is stuff runnig the back ground and I have to basically do a ‘kill -9’ on the process any ideas how I can do it nice and cleanly in the script?

Cheers,
Dan.

Oh I’m running on Ubuntu with java 1.5

EA1 deosnt have a nice clean way to stop, period.
EA2 supports JMX.

JK

Cool thanks.

so is there a few management functions exposed over jmx? deploy/undeploy?

Dan.

Whats exposed through JMX are start/stop for each installed application. I don’t believe we have the ability to install a new app, yet. For that you’ll have to write the SGS-app.conf file and restrat the server.

But it is on the list going forward.