What is the difference in :reload operation in domain vs standalone mode in EAP ?

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Issue

  • What the ":reload" operation does in EAP ?
  • Is there any differences between the ":reload" operation in domain mode and standalone mode?
  • Does jvm shuts down when reloading the server through jboss-cli ":reload" operation?

Resolution

Difference between Reload & Restart:

  • For Domain mode: In case of ":reload" command on Host Controller , will reload (stop & start) all the services which are running on a Host-controller including the JBoss process associated with that host controller, however in this case the PID of the Host Controller is not killed, which means Host-controller process never dies rather only the services associated with it are re-started.

  • For Standalone mode: The standalone JBoss process will not be killed rather the services which are running on that JBoss instance will be reloaded (stopped & started). So you will see the same PID for the JBoss is maintained before & after the ":reload" operation.

  • There is also an option available to reload using "admin-only" mode.

:reload(admin-mode=true)   
  • Here admin-only means It will set the server's running type to ADMIN_ONLY causing it to open administrative interfaces and accept management requests but not start other runtime services or accept end user requests, For more info see [1].

[1] https://access.redhat.com/site/solutions/341813

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

1 Comments

I believe what is documented above as:

:reload(admin-mode=true)

should be

:reload(admin-only=true)

also if you are using the bare reload, it seems like this is appropriate:

reload --admin-only=true