[jboss-dev-forums] [JBoss AS 7 Development] - Using the CLI remote client jar

Stan Silvert do-not-reply at jboss.com
Thu Jul 19 12:31:22 EDT 2012


Stan Silvert [https://community.jboss.org/people/ssilvert] created the document:

"Using the CLI remote client jar"

To view the document, visit: https://community.jboss.org/docs/DOC-18795

--------------------------------------------------------------
If you want to connect to a remote JBoss AS7 instance without installing AS7 on your local machine, you can use the CLI remote client jar.  It is called *jboss-cli-client.jar* and it is located in <JBOSS_HOME>/bin/client.

The *jboss-cli-client jar* can be used to remotely manage a JBoss AS instance with CLI or jconsole.  Copy jboss-cli-client.jar to your client machine.  

h3. To Run CLI using jboss-cli-client.jar
java -jar <PATH TO jboss-cli-client.jar> [--help] [--version] [--controller=host:port]
                                         [--gui] [--connect] [--file=file_path]
                                         [--commands=command_or_operation1,command_or_operation2...]
                                         [--command=command_or_operation]
                                         [--user=username --password=password]

Use --help for an explanation of the CLI command line options.  

h3. To Run jconsole using jboss-cli-client.jar
jconsole -J-Djava.class.path=<PATH TO jconsole.jar>;<PATH TO tools.jar>;<PATH TO jboss-cli-client.jar>

Path to jconsole.jar and tools.jar is typically <JAVA_HOME>/lib/jconsole.jar and <JAVA_HOME>/lib/tools.jar.
--------------------------------------------------------------

Comment by going to Community
[https://community.jboss.org/docs/DOC-18795]

Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120719/278c7674/attachment.html 


More information about the jboss-dev-forums mailing list