Currently there is no way to do this from the JDBC api. You could probably call
getUnderlyingConnection() on the connection retrieved from the DataSource, but you would
have to cast it to the appropriate type. In this case, Oracle.
At that point, the underlying OracleConnection would have to provide a way to retrieve
underlying properties.
The other way to do it would be via JMX and query the ConnectionFactory for the particular
attribute you are interested in reading. Easiest way to do it would be to proxy the
underlying RARDeployment MBean and execute the getManagedConnectionFactoryAttribute()
operation.
Finally, you could always just read the *-ds.xml file using JAXP and look for the property
you want.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960497#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...