Hi,
dbBroker = new DbConnectionBroker(
(String)defaultProps.get("driverClassName"),
(String)defaultProps.get("driverName") +
":@" +
(String)defaultProps.get("dbServerIPAddr") +
":" +
(String)defaultProps.get("dbServerPort") +
":" +
(String)defaultProps.get("oracleSID"),
(String)defaultProps.get("dbUserID"),
(String)defaultProps.get("dbUserPW"),
(int)Integer.parseInt((String)
defaultProps.get("dbInitialDBConnections"), 10),
(int)Integer.parseInt((String)
defaultProps.get("dbMaximumDBConnections"), 10),
(String)defaultProps.get("logFileString"),
(double)Double.valueOf((String)defaultProps.get("maxConnTime")).doubleValue(
));
Change all the variables to the type specified and try it. This will work.
Regards,
Sultan
-----Original Message-----
From: Garg, Anshu (CAP, RAIL)
Sent: Monday, November 27, 2000 5:37 PM
To: [EMAIL PROTECTED]
Subject:
Dear All,
conn = DriverManager.getConnection(url,user,password);
//conn =
DriverManager.getConnection("jdbc:oracle:thin:@3.121.32.11:1521:webt",
"ejb", "ejb");
I am using the above mentioned line in my code. But if I use
variables (instead of hard coded values), it doesn't work.
The variables are static variables in my class. I am reading the
properties file to get the values in the variables. The variables are
getting populated correctly.
Anshu
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html