|
From: Sujatha B. <suj...@td...> - 2007-09-06 08:33:28
|
Hi,
=20
I tried that..but still the java is not returning and the wrapper is givin =
a message saying=20
that unable to start the service after trying 5 times.
=20
How do i handle this? Is this something to be fixed with wrapper or with th=
e java?
My program will be running as a background thread..and is not suppose to re=
turn until you execute stop on the service.
=20
Please guide me
=20
Thanks
Sujie=20
=20
----- Original Message -----
From: wra...@li... on behalf of Rodrigo Vega=
=20
Sent: Wed, 5/9/2007 18:17
To: wra...@li...
Subject: Re: [Wrapper-user] Help regarding starting a service=20
=20
=20
I think your are making a main method, and this method call a thread. If th=
is
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...
Este mensaje es confidencial. Si usted ha recibido este e-mail por error, p=
or
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.
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 al=
so
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
Hi,
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.
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.
But when i click on start in administrative tools>> service>> my service i=
t
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 coul=
d
just run the java program
and return immediately without waiting for an output?
Looking forward for your help.
Thanks in advance.
Sujie
|