I want to access Data source properties from my websphere console programatically. While reading through I cam across 2 options:
1. Do JNDI lookup to get Datasource and then lookup properties from the DatabaseMetaData or Connection object. This is through the javax.sql APis
2. Using JMX api
From the above which is more efficient. I do not have the requirement of creating/modifying any properties. I just need to read those properties in my appliacation. Would using JMX objects be more expensive than doing JNDI lookup? Please let me know the pros and cons.