[jboss-user] [JCA/JBoss] - Re: how to get the value of a property in oracle-ds.xml from
weston.price@jboss.com
do-not-reply at jboss.com
Mon Jul 24 14:55:34 EDT 2006
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#3960497
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960497
More information about the jboss-user
mailing list