Intro to Red Hat JBoss Enterprise Application Platform Cheat Sheet

Intro to EAP Cheat Sheet Cover

Enable batch mode by running the batch command, then enter all of the commands in the batch. You can run the batch using the run-batch command or save it for later use using the holdback-batch command. For example:


batch

data-source add --name=DATASOURCE_NAME --jndi-name=JNDI_NAME --driver-name=DRIVER_ NAME --connection-url=CONNECTION_URL --profile=PROFILE_NAME

/subsystem=datasources/data-source=DATASOURCE_NAME:write-attribute(name=jta,value=true)

reload

run-batch

This is a quick reference for JBoss EAP open source technologies, including web server, messaging, clustering and high availability, and caching.

Advanced Red Hat JBoss Enterprise Application Platform 7 Cheat Sheet

Advanced EAp Cheat Sheet Cover

The default JVM settings are defined in the standalone.conf or domain.conf file for the app server. These settings can be configured directly in the configuration file or using the command-line tools.

JAVA_OPTS="-Xms64m -Xmx512m
-XX:MaxMetaspaceSize=256m
-Djava.net.preferIPv4Stack=true"JAVA_
OPTS="$JAVA_OPTS
-Djboss.modules.system.pkgs=$JBOSS_
MODULES_SYSTEM_PKGS
-Djava.awt.headless=true"
Set the default heap settings in the configuration file.
In this advanced cheat sheet, author Deon Ballard, builds on the Intro to JBoss EAP 7 Cheat Sheet, providing commands covering socket bindings, logging, class loading, and much more.