X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4F76B5E46C3 for ; Sat, 28 Aug 2004 11:02:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79920-07 for ; Sat, 28 Aug 2004 14:01:57 +0000 (GMT) Received: from frontend1.messagingengine.com (frontend1.messagingengine.com [66.111.4.30]) by svr1.postgresql.org (Postfix) with ESMTP id 4893E5E40BA for ; Sat, 28 Aug 2004 11:01:54 -0300 (ADT) Received: from server3.messagingengine.com (server3.internal [10.202.2.134]) by frontend1.messagingengine.com (Postfix) with ESMTP id 6D264C14DB9; Sat, 28 Aug 2004 10:01:59 -0400 (EDT) Received: by server3.messagingengine.com (Postfix, from userid 99) id 3FD331880F0; Sat, 28 Aug 2004 10:02:00 -0400 (EDT) Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.4 (F2.72; T1.001; A1.62; B3.01; Q3.01) Cc: pgsql-jdbc@postgresql.org References: <1093636380.30796.203209982@webmail.messagingengine.com> <412FC4DF.5020007@multimedia-werkstatt.com> <1093698560.18627.203238436@webmail.messagingengine.com> <41308C4B.3040102@multimedia-werkstatt.com> Subject: Re: JNDI Datasource example In-Reply-To: <41308C4B.3040102@multimedia-werkstatt.com> To: "Harry Schittler" Date: Sat, 28 Aug 2004 07:02:00 -0700 From: "Mag Gam" X-Sasl-Enc: Amlb02OydlQgmemfCYb2FA 1093701720 Message-Id: <1093701720.30665.203239813@webmail.messagingengine.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS X-Spam-Level: X-Archive-Number: 200408/154 X-Sequence-Number: 10876 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" 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