tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dudley Irish <dir...@arsmagna.com>
Subject Re: Error with JDBC connecting from servlet
Date Mon, 17 Jul 2000 21:31:41 GMT
It means using something like the following to connect to the database
rather than getting the connection information from configuration
information.

   _iobjConnection = DriverManager.getConnection( new String( "jdbc:oracle:thin:@(DESCRIPTION=
(ADDRESS= (PROTOCOL = TCP)(HOST = dbserver.somewhere.com)(PORT = 1521))(CONNECT_DATA = (SID
= ORCL))  )" ), this.get_isDBUserName(), this.get_isDBPassword());

What makes this frustrating for me is that get_isDBUserName(),
get_isDBPassword() are fetching information from the configuration
file and to make matters worse the configuration file has a line to
specify the database but the code doesn't use it.

Dudley Irish
dirish@arsmagna.com

Mime
View raw message