Any gotchas in migrating database connectivity to DataSource?

Posted by Everyone on Stack Overflow See other posts from Stack Overflow or by Everyone
Published on 2010-03-22T05:48:41Z Indexed on 2010/03/22 12:11 UTC
Read the original article Hit count: 307

Filed under:
|
|

Looking at some old application code which uses explicit driver loading as

Class.forName(...).newInstance

I have been told to change this to use the Java 1.4.2 mechanism to establish a database connection using ContextLookup, and DataSource.

Are there any gotchas I should be aware of?

© Stack Overflow or respective owner

Related posts about jdbc

Related posts about connection