*
The moose likes JBoss/WildFly and the fly likes setting Java parameters on startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "setting Java parameters on startup" Watch "setting Java parameters on startup" New topic
Author

setting Java parameters on startup

Bret Waldow
Ranch Hand

Joined: Aug 04, 2000
Posts: 59
JBoss on GNU/Linux is started by /usr/share/jboss/bin/run.sh

In this script is a line that calls the Java JVM with parameters, and loads JBoss. I want to include set some Java parameters that our server uses when it loads. I know how to set command line parameters - -DparameterName=value.

What I want to know is how to set them without modifying the run.sh script that starts JBoss. Each time I upgrade the installed JBoss package, this script file will be overwritten, and would need to be edited and patched again. No, I don't expect to do this a lot, but I can't help but wonder if there is some canonical way JBoss intended for such parameters to be set, and if I don't ask, I'll never know. Setting the JAVA_OPTS environment variable doesn't do it - the run.sh script does not read the environment.

Cheers,
Bret
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting Java parameters on startup