Wouldnt the JNDI name in the bean itself actually be

DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/Oracle");
Connection con = ds.getConnection();

Dave Wolf
Internet Applications Division
Sybase

----- Original Message -----
From: "Pawan Aggarwal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 04, 2000 8:51 AM
Subject: Urgent


> Hi All,
>
> I have some database connectivity problem
> with J2EE App Server and Oracle.
> I searched the whole archives but didn't get
> the solution to this problem..
>
> As suggested by J2EE documention i placed the classes111.zip
> in the J2EE_HOME\lib\system..gave its path in the J2EE_CLASSPATH
> and CLASSPATH in enviro..variables..
>
> default.properties have
> jdbc.drivers=oracle.jdbc.driver.OracleDriver
> jdbc.datasources=jdbc/Oracle|jdbc:oracle:thin:@SRV:1521:AppDB
>
> Now the Resource Ref's have a coded name as "jdbc/Oracle",type datasource,
> authentication as container
> User Name as Scott and Password as Tiger
> When i give the JNDI name as "jdbc/Oracle" then the deployment
> works but i get SQLException while getting connection.
> and when i give JNDI name as "Oracle" the bean doesnot deploy sucessfully
> giving errors..
> Suggest me what am i doing wrong?
>
> Thanks in advance\
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
===========================================================================
> 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".
>
>

===========================================================================
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".

Reply via email to