You should have seen a mail on this list for not more than an hour ago that talked
about this. Search for 'Does java:comp/env/jdbc work or not'
Lennart Petersson
www.benefit.se/english
----- Original Message -----
From: Kirill Averianov <[EMAIL PROTECTED]>
To: JBOSS (E-mail) <[EMAIL PROTECTED]>
Sent: Wednesday, March 21, 2001 12:10 AM
Subject: [JBoss-user] accessing datasource
> Hi ,
>
> Does anybody have any code samples how to access
> datasource pointer from JNDI. Something like this :
>
> xads = ( javax.sql.DataSource )jndiCtx.lookup ( "java:/OracleDB" );
>
>
> I created "OracleDB" datasource and the server output tells me that
> it's
> bound to the context. But when I run my code I get an error :
> "javax.naming.NameNotFoundException: OracleDB not bound"
>
> I do not know what I am doing wrong. The same code works in
> weblogic.
>
>
> Thanks a lot.
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user