List all deployed artifacts in wildfly 8

JBoss Wildfly comes with a very handy command line interface jboss-cli.sh.

Jboss-cli can execute arbitrary commands on your wildfly installation.

Example: Using this tool it’s very easy to get an overview over all currently deployed artifacts (ear, war and jar deployments):

volkers-imac:~ mupfel$ jboss-cli.sh --connect --commands="ls deployment"
mysql-connector-java-5.1.26.jar
wildfly.war
volkers-imac:~ mupfel$

It can get even easier: By defining an alias:

volkers-imac:~ mupfel$ alias lsd='jboss-cli.sh --connect --commands="ls deployment"'
volkers-imac:~ mupfel$ lsd
mysql-connector-java-5.1.26.jar
wildfly.war
volkers-imac:~ mupfel$

Add this alias to your ~/.bash_profile and the alias is available everytime you log in.

You could undeploy an artifact:

jboss-cli.sh --connect --commands="undeploy mysql-connector-java-5.1.26.jar, undeploy wildfly.war"

And much more… For more detailed Information on jboss-cli please refer to:

Advertisements

About javavolker71

when i do not write posts on this blog, don't work on or try to break my code i'm spending a reasonable amount of time
This entry was posted in IT, JEE7, OS X, wildfly8. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s