How to disable graceful startup and allow external invocations before JBoss EAP 7.4 is started

Solution Verified - Updated

Environment

Red Hat Enterprise Application Platform (EAP) 7.4

Issue

  • How to disable graceful startup and allow external invocations before JBoss EAP 7.4 is started

Resolution

Standalone Mode

graceful-startup can be disabled by passing this command line option:

./bin/standalone.sh --graceful-startup=false

Domain Mode

graceful-startup can be disabled on the server group for example:

[domain@embedded /] /server-group=main-server-group:write-attribute(name=graceful-startup,value=false)

Root Cause

JBoss EAP 7 has graceful startup and shutdown, as part of this, it does not allow external invocations while it is starting. A feature was added in EAP 7.4 to allow external invocations to be run while EAP is still starting. Note allowing this could cause issues if the application invoked has other dependencies that are not started, so applications should ensure dependencies are represented such as shown in : How to declare service lifecycle dependencies (such as EJB) between deployments in JBoss EAP 7 / 6

Client applications are also recommended to be able to handle services not being available or retrying if calling a service that may not be up.

Components
Category

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.