pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Harry Schittler <hs@multimedia-werkstatt.com>
To: Mag Gam <mag0007@myfastmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JNDI Datasource example
Date: Sat, 28 Aug 2004 15:44:43 +0200
Message-ID: <41308C4B.3040102@multimedia-werkstatt.com> (raw)
In-Reply-To: <1093698560.18627.203238436@webmail.messagingengine.com>
References: <1093636380.30796.203209982@webmail.messagingengine.com>
	<412FC4DF.5020007@multimedia-werkstatt.com>
	<1093698560.18627.203238436@webmail.messagingengine.com>

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



view thread (5+ messages)  latest in thread

Message-ID: <41308C4B.3040102@multimedia-werkstatt.com>
Permalink:  ../41308C4B.3040102@multimedia-werkstatt.com/
Also on:    postgresql.org/message-id/41308C4B.3040102@multimedia-werkstatt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: hs@multimedia-werkstatt.com, mag0007@myfastmail.com
  Subject: Re: JNDI Datasource example
  In-Reply-To: <41308C4B.3040102@multimedia-werkstatt.com>
  References: <1093636380.30796.203209982@webmail.messagingengine.com> <412FC4DF.5020007@multimedia-werkstatt.com> <1093698560.18627.203238436@webmail.messagingengine.com> <41308C4B.3040102@multimedia-werkstatt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox