-
1. Re: Specifying Exception Sorter for JBossManagedConnectionPo
adrian.brock Mar 19, 2004 8:09 PM (in response to vidyesh)1) Like most options, it is a config property on the connection factory:
<config-property name="CheckValidConnectionSQL" type="java.lang.String">
org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
</config-property>
2) If it is not in the jboss distribution it is not supported in the version of jboss you have.
I assume you are using an early version of 3.0.x?
Regards,
Adrian -
2. Re: Specifying Exception Sorter for JBossManagedConnectionPo
vidyesh Mar 19, 2004 8:17 PM (in response to vidyesh)Thanks Adrian for prompt reply.
We are using JBoss 3.0.4.
I tried specifying following config-property
<config-property name="CheckValidConnectionSQL" type="java.lang.String">SELECT 1 FROM DUAL</config-property>
Error I got was :
java.lang.IllegalArgumentException: The class 'class org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory' has no setter for config property 'CheckValidConnectionSQL', ObjectName:jboss.jca:service=NoTxCM,name=MYDS
Could you please also tell me which jar file has "org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter" class ?
Thanks & Regards -
3. Re: Specifying Exception Sorter for JBossManagedConnectionPo
adrian.brock Mar 19, 2004 8:42 PM (in response to vidyesh)Not your version. Looking at CVS it was introduced in 3.0.7 or 3.2.x
http://cvs.sourceforge.net/viewcvs.py/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/vendor/OracleExceptionSorter.java
Before you ask, No It will not work in 3.0.4
Regards,
Adrian -
4. Re: Specifying Exception Sorter for JBossManagedConnectionPo
vidyesh Mar 22, 2004 11:31 AM (in response to vidyesh)Thanks for your reply.
What could be workaround in JBoss 3.0.4 to check connection before it is returned from the pool? Is there any way to refresh this pool if connections are stale ?
Regards,
Vidyesh