Any gotchas in migrating database connectivity to the JDK 2.0 style ?

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 5:51 UTC
Read the original article Hit count: 265

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 JDK2.0 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