Skip site navigation (1) Skip section navigation (2)

Re: JNDI Datasource example

From: "Mag Gam" <mag0007(at)myfastmail(dot)com>
To: "Harry Schittler" <hs(at)multimedia-werkstatt(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JNDI Datasource example
Date: 2004-08-28 14:02:00
Message-ID: 1093701720.30665.203239813@webmail.messagingengine.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Harry, 

Thanks. Looks like the code compiles fine. However, I get no response
from postgresql (logs). Do you have a full blown Java example, instead
of a small code snipet? I think I am doing something wrong with my code.

Thanks in advance.



On Sat, 28 Aug 2004 15:44:43 +0200, "Harry Schittler"
<hs(at)multimedia-werkstatt(dot)com> said:
> 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

In response to

pgsql-jdbc by date

Next:From: Michael DykmanDate: 2004-08-28 23:15:41
Subject: broken docmentation link
Previous:From: Harry SchittlerDate: 2004-08-28 13:44:43
Subject: Re: JNDI Datasource example

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group