2010-11-07 12 views

Respuesta

0

Si quieres una fuente de datos JNDI o algo más, leer el docs. Ellos son bastante detallados.

11

Escribe un context.xml

<Context> 
    <Resource name="jdbc/dbConnection" 
    auth="Container" 
    type="javax.sql.DataSource" 
    driverClassName="com.mysql.jdbc.Driver" 
    url="j<url to database>" 
    username="user" 
    password="pwdt" 
    validationQuery="select 1" 
    removeAbandoned="true" 
    removeAbandonedTimeout="120" 
    maxWait="60" 
    maxActive="20" 
    maxIdle="10" /> 
    </Context> 
+1

+1 para dar un ejemplo en lugar de simplemente vincular a la documentación en http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html o http: //tomcat.apache .org/tomcat-6.0-doc/jndi-datasource-examples-howto.html –

Cuestiones relacionadas