Using System.exit() during jboss startup
Issue
we try to develop a logic where if our application listener fails to initiate the application we shutdown the JVM using System.exit(1).
However, this causes 'JBoss Shutdown Hook' to run, but does not shutdown JBoss.
JBoss remains stuck forever.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.x
- 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
