Re: JNDI Datasource example - Mailing list pgsql-jdbc

From Harry Schittler
Subject Re: JNDI Datasource example
Date
Msg-id 41308C4B.3040102@multimedia-werkstatt.com
Whole thread Raw
In response to Re: JNDI Datasource example  ("Mag Gam" <mag0007@myfastmail.com>)
Responses Re: JNDI Datasource example
List pgsql-jdbc
Mag Gam wrote:

>When I run this code snipnet, I get this problem.
>
>
>symbol  : variable datasource
>location: class Test
>        datasource =  (DataSource)envContext.lookup(jndiName);
>        ^
>Test.java:22: cannot resolve symbol
>symbol  : variable jndiName
>location: class Test
>        datasource =  (DataSource)envContext.lookup(jndiName);
>
>
>echo $CLASSPATH

>/usr/local/j2sdk1.4.2_05/lib/tools.jar:/usr/local/j2sdk1.4.2_05/jre/lib/rt.jar:/usr/local/jakarta-tomcat-4.1.30/common/lib/servlet.jar:/usr/local/jakarta-tomcat-4.1.30/common/lib/pg74.215.jdbc3.jar
>
>
>I looked everywhere, still problems with this datasource.
>
>
Replace the variable jndiName with  "jdbc/testds", sorry I missed this one..

cu Harry

pgsql-jdbc by date:

Previous
From: "Mag Gam"
Date:
Subject: Re: JNDI Datasource example
Next
From: "Mag Gam"
Date:
Subject: Re: JNDI Datasource example