This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / VAJ3.5. I use the following codes to retrieve the jdbcURL. But it doesn't work. The return value of url is always "null". Help!VAJ3.5. I use the following codes to retrieve the jdbcURL. But it doesn't work. The return value of url is always "null".
Connection getConnection() throws SQLException{
Properties props = context.getEnvironment(); //context is defined in beanclass as: EntityContext context = null
String url = props.getProperty("jdbcURL");
return DriverManager.getConnection(url);
// if I define url explicitly as: String url = "jdbc:db2:sample"; work well!
}
-howru(How are you?);
2001-3-14
{463}
(#33268@0)
-
oh,are you working on websphere? are there many job chances on websphere?
-per(per);
2001-3-15
(#33360@0)