R
Rico
Hello ppl.
I've been trying to use jTDS instead of Sun's JDBC-ODBC bridge in our web
application.
I'm running into a couple of issues:
(i) seconds truncated when I getString( ) a column of type datetime,
whereas this doesn't happen with Sun's bridge.
(ii) I get NullPointerException on some data access but the former error
stops when I merely revert the driver and URL back to Sun's bridge
I am wondering, does Tomcat require any particular settings for
'3rd-party' drivers such as jTDS, whereas things are simpler for Sun's
bridge because it is part of the J2SE ?
If so, which settings would those be?
All database accesses are made from plain Java code in WEB-INF\classes
not from JSP.
For another standalone application I've written all I needed was
- driver class
- connection url
- username and password for SQL authentication
And it all works fine so far.
But under Tomcat, after placing jTDS.jar in common\lib, sometimes I run
into 'connection timeout' and subsequently trying to retrieve the data
read into my collections barfs ArrayIndexOutOfBoundsException.
Rico.
I've been trying to use jTDS instead of Sun's JDBC-ODBC bridge in our web
application.
I'm running into a couple of issues:
(i) seconds truncated when I getString( ) a column of type datetime,
whereas this doesn't happen with Sun's bridge.
(ii) I get NullPointerException on some data access but the former error
stops when I merely revert the driver and URL back to Sun's bridge
I am wondering, does Tomcat require any particular settings for
'3rd-party' drivers such as jTDS, whereas things are simpler for Sun's
bridge because it is part of the J2SE ?
If so, which settings would those be?
All database accesses are made from plain Java code in WEB-INF\classes
not from JSP.
For another standalone application I've written all I needed was
- driver class
- connection url
- username and password for SQL authentication
And it all works fine so far.
But under Tomcat, after placing jTDS.jar in common\lib, sometimes I run
into 'connection timeout' and subsequently trying to retrieve the data
read into my collections barfs ArrayIndexOutOfBoundsException.
Rico.