Search This Blog

Wednesday, March 25, 2015

JBoss AS remote connection Setup

Edit standalone.xml and insert the tag any-address instead of inet-address bound to 127.0.0.1


_________________________________________________________________________
<interfaces>
    <interface name="management">
        <inet-address value="127.0.0.1"/>
    </interface>
    <interface name="public">
       <any-ipv4-address/>
    </interface>
</interfaces>

___________________________________________________________________________


Allowing binding to 0.0.0.0 means the server will listen for connections to any ip, so it is something you should be aware of.


Starting jboss without configuring the ip address will set the default address for jboss to localhost which is fit for development or maybe for a production server, where apache is used as the proxy to jboss and resides in the same machine.



_____________________________________________________________________

To a specific IP address
run.sh -b 10.62.31.31
To localhost or the IP address assigned to the server
run.sh -b 0.0.0.0
 
______________________________________________________________________
 
And in JBoss AS7 it's not run
at all :-) It's standalone.sh for the standalone server and domain.sh 
for the domain server. On Windows just change the sh to bat.
 



For more information follow my Tutorial  online @ http://jbpmmaster.blogspot.com/