|
From: Rodrigo V. <rv...@i4...> - 2007-09-05 17:17:18
|
I think your are making a main method, and this method call a thread. If =
this
is your case you must do something like
public static void main(String args[]){
YourThread t =3D new YoruThread();
t.start();
t.join();
}
In that way your java program will not day until the thread die.
Rodrigo G. Vega
i411 Argentina
rv...@i4...
=20
Este mensaje es confidencial. Si usted ha recibido este e-mail por =
error, por
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad =
de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
=20
This message is confidential. If you have received it by mistake please =
let
us know by e-mail immediately and delete it from your system; you should =
also
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Wed 05/09/2007 12:28
To: wra...@li...
Subject: [Wrapper-user] Help regarding starting a service
=20
Hi,
=20
I have used the wrapper class to create a windows service . I am =
successful
in creating the service but have an issue in starting it.
=20
My service calls a java and the java starts a thread to run and it does =
not
return anything and has to keep running in the background.
=20
But when i click on start in administrative tools>> service>> my service =
it
comes back and says unable to start and it failed.
My java program is a thread and it will not return anything , Is there =
any
configuration variable which i could specify in my conf file so that i =
could
just run the java program
and return immediately without waiting for an output?
=20
Looking forward for your help.
=20
Thanks in advance.
Sujie
=20
=20
|