craigmcc 01/04/09 14:42:53 Modified: tester/src/tester/org/apache/tester Jndi01.java Log: Make the log methods a little more explicit so that is clear whether we are working in init() or destroy(). Revision Changes Path 1.4 +5 -5 jakarta-tomcat-4.0/tester/src/tester/org/apache/tester/Jndi01.java Index: Jndi01.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/tester/src/tester/org/apache/tester/Jndi01.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- Jndi01.java 2001/04/06 23:40:35 1.3 +++ Jndi01.java 2001/04/09 21:42:53 1.4 @@ -74,7 +74,7 @@ * should succeed. * * @author Craig R. McClanahan - * @version $Revision: 1.3 $ $Date: 2001/04/06 23:40:35 $ + * @version $Revision: 1.4 $ $Date: 2001/04/09 21:42:53 $ */ public class Jndi01 extends HttpServlet { @@ -84,10 +84,10 @@ try { ctx = new InitialContext(); ctx.lookup("java:/comp"); - log("initialized successfully"); + log("initialized successfully in init()"); } catch (NamingException e) { e.printStackTrace(); - log("Cannot create context", e); + log("Cannot create context in init()", e); throw new ServletException(e); } } @@ -97,10 +97,10 @@ try { ctx = new InitialContext(); ctx.lookup("java:/comp"); - log("initialized successfully"); + log("initialized successfully in destroy()"); } catch (NamingException e) { e.printStackTrace(); - log("Cannot create context", e); + log("Cannot create context in destroy()", e); } }