User: user57  
  Date: 02/02/14 22:15:51

  Modified:    src/main/org/jboss/test/bench/servlet EJBTester.java
                        FullTester.java SimpleServlet.java
  Log:
   o replaced most System.out usage with Log4j.  should really introduce
     some base classes to make this mess more maintainable...
  
  Revision  Changes    Path
  1.3       +7 -5      jbosstest/src/main/org/jboss/test/bench/servlet/EJBTester.java
  
  Index: EJBTester.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/bench/servlet/EJBTester.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- EJBTester.java    26 Mar 2001 16:28:44 -0000      1.2
  +++ EJBTester.java    15 Feb 2002 06:15:51 -0000      1.3
  @@ -18,6 +18,8 @@
   
   
   public class EJBTester {
  +   org.apache.log4j.Category log = 
org.apache.log4j.Category.getInstance(getClass());
  +   
        int maxClients;
        Context ctx;
        
  @@ -187,7 +189,7 @@
   
                for (int i = 0; i < depth; i++) {
                        
  -                     System.out.println("Testing simple bean creation with " + 
nbClients[i] + " clients");
  +                     log.debug("Testing simple bean creation with " + nbClients[i] 
+ " clients");
                        
                        int numBeans = nbCalls / nbClients[i];
   
  @@ -250,7 +252,7 @@
   
                for (int i = 0; i < depth; i++) {
                        
  -                     System.out.println("Testing complex bean creation with " + 
nbClients[i] + " clients");
  +                     log.debug("Testing complex bean creation with " + nbClients[i] 
+ " clients");
                        
                        int numBeans = nbCalls / nbClients[i];
   
  @@ -313,7 +315,7 @@
   
                for (int i = 0; i < depth; i++) {
                        
  -                     System.out.println("Testing read-only call on simple entity 
with " + nbClients[i] + " clients");
  +                     log.debug("Testing read-only call on simple entity with " + 
nbClients[i] + " clients");
                        
                        int loops = nbCalls / nbClients[i];
   
  @@ -377,7 +379,7 @@
   
                for (int i = 0; i < depth; i++) {
                        
  -                     System.out.println("Testing call with db write on complex 
entity with " + nbClients[i] + " clients");
  +                     log.debug("Testing call with db write on complex entity with " 
+ nbClients[i] + " clients");
                        
                        int loops = nbCalls / nbClients[i];
   
  @@ -437,7 +439,7 @@
   
                for (int i = 0; i < depth; i++) {
                        
  -                     System.out.println("Testing call to session bean " + 
nbClients[i] + " clients");
  +                     log.debug("Testing call to session bean " + nbClients[i] + " 
clients");
                        
                        int loops = nbCalls / nbClients[i];
   
  
  
  
  1.2       +2 -1      jbosstest/src/main/org/jboss/test/bench/servlet/FullTester.java
  
  Index: FullTester.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/bench/servlet/FullTester.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FullTester.java   29 Nov 2000 01:15:12 -0000      1.1
  +++ FullTester.java   15 Feb 2002 06:15:51 -0000      1.2
  @@ -6,6 +6,7 @@
   import javax.servlet.http.HttpServletRequest;
   
   public class FullTester {
  +   org.apache.log4j.Category log = 
org.apache.log4j.Category.getInstance(getClass());
        int maxClients;
        
        HttpServletRequest req;
  @@ -97,7 +98,7 @@
   
                for (int i = 0; i < depth; i++) {
                        
  -                     System.out.println("Calling url " + url + " with " + 
nbClients[i] + " clients");
  +                     log.debug("Calling url " + url + " with " + nbClients[i] + " 
clients");
                        
                        int loops = nbCalls / nbClients[i];
   
  
  
  
  1.2       +1 -0      
jbosstest/src/main/org/jboss/test/bench/servlet/SimpleServlet.java
  
  Index: SimpleServlet.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/bench/servlet/SimpleServlet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleServlet.java        29 Nov 2000 01:15:12 -0000      1.1
  +++ SimpleServlet.java        15 Feb 2002 06:15:51 -0000      1.2
  @@ -17,6 +17,7 @@
   import org.jboss.test.bench.interfaces.*;
   
   public class SimpleServlet extends HttpServlet {
  +   org.apache.log4j.Category log = 
org.apache.log4j.Category.getInstance(getClass());
        PrintWriter out;
   
        protected void doGet(HttpServletRequest req, HttpServletResponse resp)
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to