sandybasic
IS-IT--Management
I'm not able to get datasource connection out of datasource pool. I created datasource in Websphere Standard edition v3.5. Used Oracle 8.1.5 as database. The format of connection string i used in Websphere is
jdbcracle:thin:<user name>/<password>@<host>:<port>:<sid>
But when i access this string from Java class using JDBC 2.0 APIs [connection = datasource.getConnection()], it throws an exception saying:
java.sql.SQLException: Io exception: Invalid connection string format, a valid format is: "hostort:sid"
The lookup for datasource using datasource = (DataSource)context.lookup(DATASOURCE_NAME) is working fine.
Can anybody help me out.. is it a problem with Oracle driver or websphere settings or my code itself??
jdbcracle:thin:<user name>/<password>@<host>:<port>:<sid>
But when i access this string from Java class using JDBC 2.0 APIs [connection = datasource.getConnection()], it throws an exception saying:
java.sql.SQLException: Io exception: Invalid connection string format, a valid format is: "hostort:sid"
The lookup for datasource using datasource = (DataSource)context.lookup(DATASOURCE_NAME) is working fine.
Can anybody help me out.. is it a problem with Oracle driver or websphere settings or my code itself??