At that level, you can try installing Synapse as a Windows service and use service start, stop shell level commands. net start Synapse net stop Synapse
Upul On Feb 18, 2008 8:31 PM, ali_khan <[EMAIL PROTECTED]> wrote: > > Hi > I have tried "o.a.synapse.ServerManager.stop()" > but its not working.Actually I am using the command > "cmd /C start " + synapseHome + "/synapse.bat" in my java code.This opens > a > new window where the synapse server starts.Now what I need is that I may > be > able to stop the server in the same way from within the java class and > also > exit from the synapse console window. > please suggest. > > thanks > faisal > > > asankha wrote: > > > > Faisal > > > > You can use o.a.synapse.ServerManager.stop() > > > > asankha > > > > ali_khan wrote: > >> Hi, > >> Please can you let me know how to stop Synapse server through java? > >> I mean I am able to start the server by providing the required > >> configuration > >> from java code, but not able to stop the server and exit using java. > >> > >> faisal > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/stopping-synapse-through-java-code-tp15542518p15546684.html > Sent from the Synapse - Dev mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
