Buscar este blog

domingo, 2 de agosto de 2015

JBoss Domain set server binding address

The purpose of this blog is to show how to start each server inside a domain in its own IP address.

In JBoss domain you have:
  • Domain controller. One node is the DC that manage the Host Controllers.
  • Host controllers. There would be one HC for each physical node in the domain.
  • Server group: A server group is a logical group of servers that can span over multiple HC
  • Server. A server is the worker instance of a node in which applications are executed

Inside a HC you can have multiple servers, but in order they don't collide, you have to:
  • Set a port offset in each server. For example, server-1 starts in 0, server-2 starts in +150, etc.
  • Set a unique IP address for each one.

The cleanest way is to put each server in a separate IP and let the default port offset to 0. In order to do that, you have to set two System Properties in the server:
  • jboss.bind.address
  • jboss.bind.address.unsecure

I have two HCs and a server group called "jbossEAP6-sg1". This server group is composed by two servers, "server-full-ha1" and "server-full-ha-2" with a zero port offset:



Each server has its own bind address:, 192.168.56.130 and 192.168.56.140:




No hay comentarios:

Publicar un comentario