How to get notified when datasource mbeans are registered in JBoss EAP 6

Solution Unverified - Updated -

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 6.4

Issue

  • How to get notified when datasource mbeans are registered in JBoss EAP 6

Resolution

There was a feature implemented in JBoss EAP 6.4 which has the JBoss Management API send MBean notifications in the JBoss Management API facades. With this change, a MBean NotificationListener can listen for MBeans getting registered and then perform an action at that time.

See the attached example that watches for datasources being registered in JBoss EAP 6

Related Solutions

Attachments

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.

Comments