Tomcat fans,

The list of "ResourceParams" you can specify for an environment resource is
different between Tomcat 4.0.x and 4.1.x. Below is some servlet code you can
run to get an idea of exactly what parameters you can set for your
DataSource.

Vance

===============================================

       java.io.PrintWriter pw  = resp.getWriter();

        try {
            resp.setContentType("text/plain");

            javax.naming.Context ctx = new javax.naming.InitialContext();

            javax.sql.DataSource ds = (javax.sql.DataSource)

ctx.lookup("java:comp/env/jdbc/Alpha");

            Class c = ds.getClass();
            java.lang.reflect.Method[] ms = c.getDeclaredMethods();
            for (int i=0; i<ms.length; i++) {
               if (ms[i].getName().startsWith("set") ) {
                  pw.println(ms[i]);
               }
            }



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to