How to ensure DataSource is initialised before custom JBoss entensions are loaded
Issue
-
We have a custom extension installed on JBoss, and it needs to use a DataSource. Some times startup fails because the DataSource is not yet ready when the extension is started. How can we fix this?
-
How can we force JBoss to initialize its datasources before initializing its modules?
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.