Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 9804 invoked from network); 9 Oct 2000 15:47:20 -0000 Received: from lukla.sun.com (192.18.98.31) by locus.apache.org with SMTP; 9 Oct 2000 15:47:20 -0000 Received: from centralmail1.Central.Sun.COM ([129.147.62.10]) by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id JAA23070 for ; Mon, 9 Oct 2000 09:47:19 -0600 (MDT) Received: from esun1as-mm. (esun1as-mm.Central.Sun.COM [129.147.34.144]) by centralmail1.Central.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with SMTP id JAA05080 for ; Mon, 9 Oct 2000 09:47:19 -0600 (MDT) Received: from eng.sun.com by esun1as-mm. (SMI-8.6/SMI-SVR4) id JAA25792; Mon, 9 Oct 2000 09:56:00 -0600 Message-ID: <39E1E8BB.4707577B@eng.sun.com> Date: Mon, 09 Oct 2000 08:48:11 -0700 From: "Craig R. McClanahan" X-Mailer: Mozilla 4.75 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: DataSource object References: <5.0.0.25.0.20001009124107.00b79690@mail> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Gregor Kova� wrote: > Hi! > > Is there possibility to set tomcat or some other stuff so that I will be > able to use connection pooling thru DataSource object, something like: > Hashtable parms = new Hashtable(); > parms.put(Context.INITIAL_CONTEXT_FACTORY, > "com.ibm.ejs.ns.jndi.CNInitialContextFactory"); > parms.put(Context.PROVIDER_URL, "iiop:///"); > Context context = new InitialContext(parms); > dataSource = (DataSource) context.lookup("jdbc/iShop"); > conn = dataSource.getConnection("user", "pass"); Doing this will require Tomcat to provide a per-app JNDI context in the same way that J2EE application servers do. While Tomcat does not currently provide this, it is on the radar for a post-4.0 release. Craig McClanahan ==================== See you at ApacheCon Europe ! Session VS01 (23-Oct 13h00-17h00): Sun Technical Briefing Session T06 (24-Oct 14h00-15h00): Migrating Apache JServ Applications to Tomcat