|
From: Leif M. <lei...@ta...> - 2011-05-23 23:33:58
|
Martin, The Wrapper configuration file is read into a Hash Map in memory so the last value loaded will be the one that is used. See the diagram and explanation here: http://wrapper.tanukisoftware.com/doc/english/props-cascading.html Do you mean that you wish to use the following defaults but then allow the user to change the locations from the application and have them take effect on restart? If so then start with this in your wrapper.conf --- ... wrapper.restart.reload_configuration=TRUE wrapper.app.parameter.1=aero.sita.gsl.bio.services.backEnd.commonCore.externalJms.ExternalJmsServer wrapper.app.parameter.2=spring/biometricServices/consumer/biometricStorageConsumerConfig.xml wrapper.app.parameter.3=spring/biometricServices/consumer/biometricMatchingConsumerConfig.xml wrapper.app.parameter.4=spring/biometricServices/consumer/biometricIdentificationConsumerConfig.xml #include ../conf/wrapper-settings.conf ... --- Initially the wrapper-settings.conf would not exist. But when you got the location you wanted, it could be created like this: --- #encoding=UTF-8 wrapper.app.parameter.2=../xml/spring/biometricServices/consumer/biometricStorageConsumerConfig.xml wrapper.app.parameter.3=../xml/spring/biometricServices/consumer/biometricMatchingConsumerConfig.xml wrapper.app.parameter.4=../xml/spring/biometricServices/consumer/biometricIdentificationConsumerConfig.xml --- The reload configuration property will tell the Wrapper to reload the configuration file after each restart http://wrapper.tanukisoftware.com/doc/english/prop-restart-reload-configuration.html Please let me know how this works for you, or if I missed what you are trying to do. Cheers, Leif On Mon, May 23, 2011 at 8:21 PM, <Mar...@si...> wrote: > > Hi everyone > > This is my first post... > > We have a java app which we run as a service using the Java Service > Wrapper... > > In our wrapper.conf file we pass in four parameters (shown below).... > # Application parameters. Add parameters as needed starting from 1 > wrapper.app.parameter.1=aero.sita.gsl.bio.services.backEnd.commonCore.externalJms.ExternalJmsServer > wrapper.app.parameter.2=spring/biometricServices/consumer/biometricStorageConsumerConfig.xml > wrapper.app.parameter.3=spring/biometricServices/consumer/biometricMatchingConsumerConfig.xml > wrapper.app.parameter.4=spring/biometricServices/consumer/biometricIdentificationConsumerConfig.xml > > Parameters 2,3 & 4 are XML files which live inside a jar file that is > referenced by our application. > > I would like to override these files (as they provide just default > functionality) and place them in a directory that someone can browse to and > update as necessary.... > Once we restart our app, the new settings would get read, and used by our > app.... > > I have tried a few things such as... > wrapper.java.classpath.32=../xml/spring/biometricServices/consumer/biometricStorageConsumerConfig.xml > wrapper.java.classpath.33=../xml/spring/biometricServices/consumer/biometricMatchingConsumerConfig.xml > wrapper.java.classpath.34=../xml/spring/biometricServices/consumer/biometricIdentificationConsumerConfig.xml > but have had no luck > > Is there any way I can do this using the wrapper.conf file > > Thanks in advance for any help you can provide > > Regards > Martin > > Martin Lynch > Associate Programmer > Government & Security Solutions > SITA > Société Internationale de Télécommunications Aéronautiques > > Office Tel: +353 (0)74 91 94 700 > Direct Tel: +353 (0)74 91 94 781 > CVS 293 4781 > Fax: +353 (0) 74 91 94 717 > Email: mar...@si... |