tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: DataSource object
Date Mon, 09 Oct 2000 15:48:11 GMT
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,
> "");
>                 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

View raw message