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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.