Hello, Thank you for that suggestion. It may be the best option. Looking at the code, the java opts can be provided, but I cannot see how this is done on a restart.
At the moment we are starting the main instance which starts the sub-instances on reboot. As we are likely to have a few sub-instance is there any way to use the mechanism as we want to keep the main server. If this cannot be done, how do we stop the main server trying to start its sub instances? Do we just have ensure the main instance always starts last? Peter. -----Original Message----- From: Guillaume Nodet [mailto:[email protected]] Sent: 27 November 2009 13:59 To: users Subject: Re: How do I set the JVM args for sub-instance of karaf? So you have created an instance, installed the wrapper feature, and launched the wrapper:install command from the instance, right ? If so, you should have a file named [root]/instances/k1/etc/xxx-wrapper.conf which is the configuration file for JSW. Just edit this file and change the properties named wrapper.java.additional.xxx On Fri, Nov 27, 2009 at 10:17, peter lawrey <[email protected]> wrote: > We have a number of instances of karaf which are sub-instances of the > main instance. > > How do we set command line arguments like `admin:start -o` does? > > e.g. > > -Dcom.sun.management.jmxremote.port=9004 > > > > We want this to be set when the services are restarted automatically. > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

