AdderService adder = new AdderService();
adder.run();
String adderWSDLLoc = adder.getServiceWsdlLocation();
MultiplierService multiplier = new MultiplierService();
multiplier.run();
String multiplierWSDLLoc = multiplier.getServiceWsdlLocation();
String[] arguments = new String[] { "-topic", "complex-math", "-Adder_wsdl", adderWSDLLoc, "-Adder_2_wsdl",
adderWSDLLoc, "-Multiplier_wsdl", multiplierWSDLLoc };
JythonOneTimeRunnerImpl runner = new JythonOneTimeRunnerImpl();
runner.run(jythonString, arguments);
try {
runner.run(jythonString, arguments);
fail();
} catch (Exception e) {
// It succeeds only once.
}
adder.shutdownServer();
multiplier.shutdownServer();
}