How to ensure the datasource Mbean is deployed before artifact deployment in EAP 6

Solution Unverified - Updated -

Issue

On startup we want to access the subsystem=datasource MBean before the application deployment. If I deploy after startup it works fine. For now I have added a work around to ignore the exception, it keeps throwing exception, but once the application is deployed it finds the MBean.

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