I know how to start or stop application useing SolutionControlServerProtocol.
My code is ..
Endpoint endpoint = new Endpoint(name, host, port);
// Here is the sample of how to open connection to Solution Control Server
// and retrieve actual information about application.
SolutionControlServerProtocol protocol = new SolutionControlServerProtocol(endpoint);
protocol.setTimeout(3 * 1000);
try {
protocol.open();
System.out.println("Connected");
} catch(Exception e) {
System.out.println("Not Connected : " + e.getMessage());
}
RequestStopApplication rai = RequestStopApplication.create();
// Application clientId which status we want to know
rai.setControlObjectId(105);
try {
// request
Message message = protocol.request(rai);
handleMessage(message);
} catch (Exception e) {
System.out.println("request error : " + e.getMessage());
}
but.. result was “null” and the application didn’t stop.
Name : Solution Control Server
Package Version : 7.5.000.08
Build Date : 2007-01-19
Build Number : 1
Language : English (United States)
Release Type : General