Subject Re: [Firebird-Java] Setting up Firebird Pool inside Tomcat 5.5
Author Federico Tello Gentile
I'm going to answer my own question.

Maybe this can go to the firebird wiki since what's there is outdated
and does not work with Tomcat 5.5.

This sets up a pool managed by tomcat in some standard way I'm not too
familiar with yet, but you can forget about everything else.

Place firebirdsql-full.jar in ${CATALINA_HOME}/common/lib

In the application's context.xml

<?xml version="1.0" encoding="UTF-8"?>
<Context path="/PooledWebapp" reloadable="false">
<Resource auth="Container"
maxActive="100" maxIdle="30" maxWait="100"


In the application's web.xml
<description>DB Connection</description>

To do sql inside an index.jsp

<%@ taglib uri="" prefix="sql" %>
<%@ taglib uri="" prefix="c" %>

<sql:query var="rs" dataSource="jdbc/dbTest">
select id, nombre, telefono from persona

<c:forEach var="row" items="${rs.rows}">
Id ${}<br/>
Nombre ${row.nombre}<br/>
Tel: ${row.telefono}<br/>

To get a connection inside a java class
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/dbTest");
Connection conn = ds.getConnection();