We are using Jtds as the jdbc driver to connect to the database. We are trying to pool the connection using this driver. In doing so we got an exception:
[5/31/06 17:30:44:471 CDT] 41c07c48 ConnectionFac E J2CA0036E: An exception occurred while invoking method setDataSourceProperties on com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl used by resource jdbc/neDataSource : java.lang.reflect.InvocationTargetException: com.ibm.ws.exception.WsException: DSRA8052W: Unable to find constructor for DataStoreHelper: net.sourceforge.jtds.jdbcx.JtdsDataSource at com.ibm.ws.rsadapter.exceptions.DataStoreAdapterException.<init>(DataStoreAdapterException.java:244).... and so on
We are using:
Implementation Class Name: net.sourceforge.jtds.jdbcx.JtdsDataSource
Can anyone suggest how pooling can be done using the jtds driver?
Hi, this is the way I used the JTDS driver in WAS 6.1 and 7 .
I copied the jtds jar to local dir - ex D:\IBM\WebSphere\AppServer\lib\jtds-1.2.5.jar
then I created the JDBC for it from Resources\JDBC Providers, choose the scope, type=defined by user, implementation name=net.sourceforge.jtds.jdbcx.JtdsDataSource, save and sync.
Get inside the JDBC and create a Data source, (from this point on you have 2 options, create a DataSource or a DataSource V4 - older version -), I use V4.
Define the JDNI that you will use, and leave all the rest default.
then once the data source is created, get inside the datasource, and click on custom properties, there if you chose the V4 DS you have to add the following properties:
if you chose the Datasource (without V4) you will have a list of the properties that you can use, so you just look for these 3 properties and fill out the value field.