hi,
I have written a web service on tuscany and in the in the main function
after SCADomain.newInstance it is waiting for "enter" input from user to
exit
(the same way it is done in the helloworld-ws-service example)
main method in the sample:
public static void main(String[] args) {
SCADomain scaDomain =
SCADomain.newInstance("META-INF/sca-deployables/helloworldws.composite");
* try {*
* System.out.println("HelloWorld server started (press enter to
shutdown)");*
* System.in.read();*
* } catch (IOException e) {*
* e.printStackTrace();*
* }*
scaDomain.close();
System.out.println("HelloWorld server stopped");
}
The problem is that I can't run the problem in background in centOS (it has
to be in the foreground for the System.in.read line).
how can I run the webservice in the background?
can I change the bolded part to wait for kill signal or something like that?
Thanks.
--
Best,
Renana.