Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle Access through Sun J2EE Server

Status
Not open for further replies.

mobilop

Programmer
Nov 17, 2001
1
0
0
GB
I'm using Sun J2EE Server 1.3 and Oracle 8.1.7
I am trying to use an EJB to access Oracle DB with the Thin Driver, specified via JNDI lookup:
jdbc:eek:racle:thin:scott/tiger@localhost:1521:eek:rcl8
Using this URL in a standard Java program works perfect.
The code inside the EJB is taken from an example and works perfect with Cloudscape Database:
DataSource ds = (DataSource) ic.lookup(dbName);
con = ds.getConnection();
However using oracle, i get a javax.ejb.CreateException Exception, saying that not specifying any user name and password in thin driver is not supported which doesnt make any sense, since this data is provided in the url.

thanks for your help.

"javax.ejb.CreateException: Keine Benutzer- oder Kennwortangabe in THIN-Treiber nicht unterstuetzt"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top