Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jtds Driver  RSS feed

Luke Zechariah
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 used by resource jdbc/neDataSource : java.lang.reflect.InvocationTargetException: DSRA8052W: Unable to find constructor for DataStoreHelper: net.sourceforge.jtds.jdbcx.JtdsDataSource
at<init>( 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?

Thank you,
adrian romero
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Once you finish you can test the connnection.

Hope it helps!

Adrian -

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!