Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 33659 invoked from network); 30 Jun 2003 20:31:17 -0000 Received: from mail.xentel.com (216.123.222.138) by daedalus.apache.org with SMTP; 30 Jun 2003 20:31:17 -0000 Received: from mail.xentel.com (localhost [127.0.0.1]) by mail.xentel.com (8.12.6/8.12.6) with ESMTP id h5UKVMuS027170 for ; Mon, 30 Jun 2003 14:31:22 -0600 Received: from VANITA (VANITA.xentel.com [89.10.10.30]) by mail.xentel.com (8.12.6/8.12.6) with SMTP id h5UKVI2x027163 for ; Mon, 30 Jun 2003 14:31:18 -0600 Message-ID: <014101c33f47$404aaed0$1e0a0a59@xentel.com> From: "Vanita Shroff" To: Subject: DBCP Connection Pooling Date: Mon, 30 Jun 2003 14:36:07 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_013C_01C33F14.F16C2C80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_013C_01C33F14.F16C2C80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello: I am using DBCP Jdbc2PoolDataSource and DriverAdapterCPDS for having a = pool of connections for a client-server application (without having an = middle layer application server tier). I am using Sun One Directory = Server to bind my Jdbc2PoolDataSource as a datasource object. I can = successfully bind the object. But from the client machine when I do JNDI = lookup as: Jdbc2PoolDataSource ref =3D = (Jdbc2PoolDataSource)ctx2.lookup(pooldsbindString); Connection c =3D ref.getConnection(); I get a nullpointerexception. Any idea what am I doing wrong here? How = can I create a pool of connections on the server and connect it from the = client using JNDI without using an application server tier? Thanks, VS ------=_NextPart_000_013C_01C33F14.F16C2C80--