resin jndi数据库连接池配备

resin jndi数据库连接池配置web.xml文件public int openConn(String dbName) {try {String jndiName app

resin jndi数据库连接池配置
web.xml文件

public int openConn(String dbName) {        try {            String jndiName = appconf.get(dbName);            DataSource ds = (DataSource) cachtable.get(jndiName);            if (ds == null) {                Context ctx = new InitialContext();                ds = (DataSource) ctx.lookup(jndiName);                cachtable.put(jndiName, ds);            }            conc = ds.getConnection();            return 0;        } catch (Exception e) {            e.printStackTrace();            return -1;        }    }


resin3.0和resin4.0都测试成功