Adrianos Dadis

About Adrianos Dadis

Adrianos is working as senior software engineer in telcos business domain. Particularly interested in enterprise integration, multi-tier architecture and middleware services. He mainly works with Weblogic, JBoss, Java EE, Spring, Drools, Oracle SOA Suite and various ESBs.

Set WildFly binding address and shutdown using CLI

It’s very easy to bind WildFly on a hostname/IP just using command line parameters. I have a simple GNU/Linux box that I use it to play with various things, one of them is WildFly.

I start WildFly listening on a specific IP using this commands:
 
 
 
 
 
 

$> cd /opt/wildfly/wildfly-8.0.0.Beta1/bin
$> ./standalone.sh -c standalone-full.xml -b=192.168.1.10 -bmanagement=192.168.1.10

As you can see, I use my IP in 2 parameters/points. The first one (-b) is the regular address that server listens to serve traffic and the second one (-bmanagement) is the management address. The first parameter (-b) is the old known parameter that is used on JBoss 4.x too.

In order to shutdown server, I use the new CLI interface of JBoss/WildFly:

$> cd /opt/wildfly/wildfly-8.0.0.Beta1/bin
$> ./jboss-cli.sh --connect controller=192.168.1.10 command=:shutdown

JBoss/WildFly CLI is really useful tool, as you can use it to create/change/view various resources on server (Datasource, JMS destinations, etc.) and deploy/undeploy applications.  JBoss/WildFly CLI is very similar to WebLogic Scripting Tool (WLST), but JBoss CLI is Open Source and the knowledge is on public space and does not belong to a company or to a closed group. This is the vital virtue of Open Source Software and Free Software, to learn people to share and innovate on the same time.

Hope it helps!
 

Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

JPA Mini Book

Learn how to leverage the power of JPA in order to create robust and flexible Java applications. With this Mini Book, you will get introduced to JPA and smoothly transition to more advanced concepts.

JVM Troubleshooting Guide

The Java virtual machine is really the foundation of any Java EE platform. Learn how to master it with this advanced guide!

Given email address is already subscribed, thank you!
Oops. Something went wrong. Please try again later.
Please provide a valid email address.
Thank you, your sign-up request was successful! Please check your e-mail inbox.
Please complete the CAPTCHA.
Please fill in the required fields.

Leave a Reply


× one = 2



Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy | Contact
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

Get ready to Rock!
You can download the complementary eBooks using the links below:
Close