Hello,
We are trying jdbc connectivity, using oracle as database and J2ee web
server.
The code is as follows:
String dbName="java:comp/env/jdbc/OracleCustDB";
InitialContext ic = new InitialContext();
Datasource datasource = (DataSource) ic.lookup(dbName);
String dbuser="scott";
String dbPassword="tiger";
System.out.println("Its get conection method");
dbConnection = datasource.getConnection(dbuser,dbPassword);
The setting in "default.properties" file of j2ee1.2.1 is as follows:
Jdbc driver:-
jdbc.drivers = oracle.jdbc.driver.OracleDriver
Jdbc Datasource:-
jdbc.datasources = jdbc/OracleCust|jdbc:oracle:thin:@localhost:8080:SSMTech
The application throws exception at the time of execution :
Exception:-No suitable driver.
Please give some suggestion.
Thanks in advance,
Viraj
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".