Jboss Profiles

Startup mode, profile selection

You can switch the profile applied to your server:

standalone.sh
--server-config=<config>            Name of the server configuration file
                                        to use (default is "standalone.xml")

you can choose between:

[jbadm@gorrojo configuration]$ ls -l /opt/redhat/jboss/jboss/standalone/configuration/*.xml
-rw-r--r--. 1 jbadm webapps 27024 Mar 10  2012 /opt/redhat/jboss/jboss/standalone/configuration/standalone-full-ha.xml
-rw-r--r--. 1 jbadm webapps 20794 Mar 10  2012 /opt/redhat/jboss/jboss/standalone/configuration/standalone-full.xml
-rw-r--r--. 1 jbadm webapps 20358 Mar 10  2012 /opt/redhat/jboss/jboss/standalone/configuration/standalone-ha.xml
-rw-r--r--. 1 jbadm webapps 15371 Nov  3 10:33 /opt/redhat/jboss/jboss/standalone/configuration/standalone.xml

Default example:

[jbadm@gorrojo ~]$ standalone.sh --server-config=standalone.xml
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/redhat/jboss/jboss

  JAVA: java

  JAVA_OPTS:  -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml