cancel
Showing results for 
Search instead for 
Did you mean: 
jeesshnasree
Starfighter Starfighter
Starfighter
  • 2,473 Views

How to configure two standalone servers and what is the importance of the port set value.

Jump to solution

Hi all.

 

i want started learning Jboss Eap . 
how to configure 2 standalone profiles in same host ?.

what is portoffset , could you please exaplain in detail description with examples.

 

if anyone knows , could you please explain.  

 

 

 

 

Labels (2)
2 Solutions

Accepted Solutions
Gunnar
Flight Engineer Flight Engineer
Flight Engineer
  • 2,458 Views

Hi!

When using the "standalone" mode you can use the command-line flag "-c" to select which configuration file (aka "profile" in domain mode) you want to use. You can create more profiles by just copying one of the existing files "standalone.xml", "standalone-ha.xml" etc.

The port offset does exactly what its name implies: You can use this parameter to add its value to the predefined port numbers:

By default the management console will listen on port 9990 and workload will run on 8080. If you specify an offset of 10000 (-Djboss.socket.binding.port-offset=10000) management will lsiten on 19990 and your applications will be reachable on port 18080.

port-offset is typically used to make it possible to run more than one server on the same host and interface.

You'll find the detailed documentation including configuration examples in the reference documentation (https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.2/)

There is also http://www.mastertheboss.com with lots of configuration examples ...

Regards,

Gunnar

View solution in original post

jeesshnasree
Starfighter Starfighter
Starfighter
  • 2,447 Views

Hi @Gunnar ,

 

Thank you for share. 😊

 

Regards,

jeesshnasree

View solution in original post

0 Kudos
2 Replies
Gunnar
Flight Engineer Flight Engineer
Flight Engineer
  • 2,459 Views

Hi!

When using the "standalone" mode you can use the command-line flag "-c" to select which configuration file (aka "profile" in domain mode) you want to use. You can create more profiles by just copying one of the existing files "standalone.xml", "standalone-ha.xml" etc.

The port offset does exactly what its name implies: You can use this parameter to add its value to the predefined port numbers:

By default the management console will listen on port 9990 and workload will run on 8080. If you specify an offset of 10000 (-Djboss.socket.binding.port-offset=10000) management will lsiten on 19990 and your applications will be reachable on port 18080.

port-offset is typically used to make it possible to run more than one server on the same host and interface.

You'll find the detailed documentation including configuration examples in the reference documentation (https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.2/)

There is also http://www.mastertheboss.com with lots of configuration examples ...

Regards,

Gunnar

jeesshnasree
Starfighter Starfighter
Starfighter
  • 2,448 Views

Hi @Gunnar ,

 

Thank you for share. 😊

 

Regards,

jeesshnasree

0 Kudos
Join the discussion
You must log in to join this conversation.