On 15.03.2012 17:08, Konstantin Kolinko wrote: > 2012/3/15 "H. Ferdinand Nölscher" <[email protected]>: >> Hello! >> >> I need to pass some arguments to my application, which is using the jsvc >> daemon loader. How could I possibly do that? >> > From the docs: >> http://commons.apache.org/daemon/jsvc.html >> ./jsvc -help >> Usage: jsvc [-options] class [args...] > > Those "args..." is what you are asking for. > > There is also >> -D<name>=<value> >> set a Java system property > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
Let's say I run jsvc [-options] class myargs anotherArgument I check for arguments with something like: String[] args = dc.getArguments(); (dc is the DaemonContext) But that just gives me an empty list. kind regards, F. Nölscher --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
