API to access Datasource binding for JDBC data sources
I've written some code which is able to programmatically lookup the configured Datasources in weblogic and output useful information about the connection pool settings. This code is accessing the MBeans available in weblogic and accessing some of the relevant Mbean objects and associated attributes.
What I'm struggling with though is how to match the data source information available from the weblogic server to the resources used by my application. I presume weblogic is maintaining some sort of binding from the JNDI name that my application looks up to the JNDI name configured in the server.
Can anyone tell me if it's possible to programatically access the JNDI binding through the MBeans, or some other mechanism?