JBoss Community

Re: JBoss 7.0.2 binding to IP Address

created by Tan Mariani in Beginner's Corner - View the full discussion

Dear Peter,

 

Thanks for your answer.

 

My JBoss is running on windows (xp x64), but I planned to run on linux.

 

 

This is what I got where running my standalone.bat

08:18:44,807 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Starting Coyote HTTP/1.1 on http--127.0.0.1-8090

 

And when I run standalone.bat -Djboss.bind.address=172.16.122.194

I got the following line

08:25:30,432 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Starting Coyote HTTP/1.1 on http--172.16.122.194-8090

 

 

And here is my standalone.conf.bat configuration :

 

## -*- shell-script -*- ######################################################

## ##

##  JBoss Bootstrap Script Configuration ##

## ##

##############################################################################

 

#

# This file is optional; it may be removed if not needed.

#

 

#

# Specify the maximum file descriptor limit, use "max" or "maximum" to use

# the default, as queried by the system.

#

# Defaults to "maximum"

#

#MAX_FD="maximum"

 

#

# Specify the profiler configuration file to load.

#

# Default is to not load profiler configuration file.

#

#PROFILER=""

 

#

# Specify the location of the Java home directory.  If set then $JAVA will

# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".

#

#JAVA_HOME="/opt/java/jdk"

 

#

# Specify the exact Java VM executable to use.

#

#JAVA=""

 

if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then

JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman"

fi

 

#

# Specify options to pass to the Java VM.

#

if [ "x$JAVA_OPTS" = "x" ]; then

   JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

   JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"

fi

 

# Sample JPDA settings for remote socket debugging

#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

 

# Sample JPDA settings for shared memory debugging

#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"

 

# Allow JProfiler to find its classes

#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=com.jprofiler"

 

# Use JBoss Modules lockless mode

#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.lockless=true"

 

# congigure interface bind management

JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=172.16.122.194"

JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=172.16.122.194"

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community