Start mule in new thread and stop it programmatically
Hi All,
Here is my requirement
1) Start mule 1.4.x in separate thread from my java application.
2) Be able to stop the the server from my java application, and re-start it with a new config file.
I read the documentation and found the following code to start it in a new thread
//create a new server and configure it with two config files
MuleServer server = new MuleServer("mule-config1.xml");
//Start the server. The boolean argument determines if the server should start
//in a new thread or use the current thread
server.start(false);
But how do i stop this server. The MuleServer class has function to stop this. Please help me out.