This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 58
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
 
Similar Threads
CLASSPATH PROBLEM
How to increase jboss memory?
JBOSS Installation in Solaris
getting and setting environment variables
Running JBoss-5.1.0.GA as a service on Red Hat?