If you are using the SynapseServer as in the startup scripts files, you can
use the following code to do what happens inside the SynapseServer.main()
method instead.

import org.apache.synapse.ServerManager;

serverManager = ServerManager.getInstance();
serverManager.setAxis2Repolocation("repository location");
serverManager.start();
...
serverManager.stop();

Hope this helps.

Upul



On Feb 18, 2008 4:13 PM, ali_khan <[EMAIL PROTECTED]> 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
> --
> View this message in context:
> http://www.nabble.com/stopping-synapse-through-java-code-tp15542518p15542518.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]
>
>

Reply via email to