Dave Ford wrote:
> I have developed a J2EE Web Application using a servlet engine that supports
> connection pooling using jndi lookups (as specified by j2ee spec). In other
> words, I have dozens of servlets and jsp pages that all make use of this
> syntax:
>
> Context ctx = new InitialContext();
> DataSource ds = ctx.lookup("jdbc/pool/MyDb");
> conn = ds.getConnection();
>
> Now I want to switch to Tomcat, but Tomcat does not support this mechinism.
> Is there any way to make Tomcat work with a j2ee complient jndi connection
> pool lookup?
>
Supporting this sort of JNDI context for <resource-ref> and <env-entry>
configuration elements is on the TODO list for Tomcat 4.0. Code contributions
are welcome :-).
In the mean time, you might consider running inside a J2EE server that embeds
Tomcat as its servlet container, and also provides all the other J2EE
facilities. One option is JBoss <http://www.jboss.org>.
>
> Dave
>
Craig McClanahan
====================
See you at ApacheCon Europe <http://www.apachecon.com>!
Session VS01 (23-Oct 13h00-17h00): Sun Technical Briefing
Session T06 (24-Oct 14h00-15h00): Migrating Apache JServ
Applications to Tomcat
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html