How to set Discovery timeout in EJB client in JBoss EAP 7?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
Issue
- What is the default Discovery timeout in EJB shipped in EAP 7.2?
- How to change the Discovery timeout in EJB?
Resolution
EJB client discovery timeout is configured via system property org.jboss.ejb.client.discovery.timeout, which is given in seconds.
org.jboss.ejb.client.discovery.timeout defaults to 0 seconds (meaning there is no timeout).
org.jboss.ejb.client.discovery.additional-node-timeout defaults to 200 milliseconds (for EAP 7.4 Update 10+ , prior to that it defaulted to 0 ms)
Root Cause
The default value is set at 0, see Content from github.com is not included.code:
private static final long DISCOVERY_TIMEOUT = Long.parseLong(WildFlySecurityManager.getPropertyPrivileged("org.jboss.ejb.client.discovery.timeout", "0"));
This content is not included.JBEAP-24376
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.