Singleton service getting deactivated automatically after some time
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Issue
- Singleton service deployed in production server is deactivating automatically after some time.
Resolution
preDestroy method was called which lead to deactivation of the Singleton service.
Check for any exception that would have caused the preDestroy method to be called.
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
