Created
September 24, 2013 00:18
-
-
Save welsh/6678788 to your computer and use it in GitHub Desktop.
JBoss AS 7 Commands Cheat Sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All Commands are jboss-cli.sh unless indicated | |
# Stop / Start JBoss Server | |
/host=master/server-config=server-one:stop | |
/host=master/server-config=server-one:start | |
# Check is JBoss is Up | |
ls -l /host=master/server-config=server-one (SHOULD Work) | |
Bash = ps -e -o pid -o args | grep java | grep 'server-one' | grep -v 'grep' | awk '{print $1}' (Will return just the PID of the running instance) | |
# Deploy War File for the First Time | |
deploy /tmp/my-application.war --server-groups=first-group | |
# Re-Deploy War File | |
deploy /tmp/my-application.war --force | |
# Test Data Source in Domain | |
/host=master/server=server-one/subsystem=datasources/data-source=myTestDS:test-connection-in-pool | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment