commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Mielke <andreasmie...@googlemail.com>
Subject Re: [DAEMON] procrun - java Property File
Date Sun, 16 Jan 2011 19:57:15 GMT
Hello JP,

Please write me a example?

Andreas 



Am 16.01.2011 um 20:37 schrieb Juan Pablo Pizarro <juanpablo.pizarro@gmail.com>:

> Andreas, you can use a resource bundle to obtain the .properties from the
> jar.. i mean, you put the .properties into the file and you can read from
> it.
> 
> I posted some classes to do that some months ago.
> 
> Regards.
> 
> JP
> 
> 2011/1/16 Konstantin Kolinko <knst.kolinko@gmail.com>
> 
>> 2011/1/16 Andreas Mielke <andreasmielke@googlemail.com>:
>>> I use Apache Common Daemon to install a java application as a windows
>> service. The problem is i have a java properties file to setup few
>> parameters and i don't know how to describe the location of the property
>> file in the command line. My installation of the service is like
>>> 
>>> prunsrv //IS//TestService --DisplayName="Test Service"
>> --Install=prunsrv.exe --Jvm=auto --StartMode=jvm --StopMode=jvm
>> --StartClass=org.apache.SomeStartClass.
>>> 
>> 
>> If you want to pass it as a system property, use "JvmOptions" [1] to
>> specify -D.
>> 
>> Is it what you are asking? If you were running your app with
>> java(w).exe, what would be your command line?
>> 
>> [1] http://commons.apache.org/daemon/procrun.html
>> 
>> Best regards,
>> Konstantin Kolinko
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>> 
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message