How to ensure DataSource is initialised before custom JBoss entensions are loaded

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content