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

  Modified:    src/main/org/jboss/test/perf/ejb ClientSessionBean.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       +8 -6      
jbosstest/src/main/org/jboss/test/perf/ejb/ClientSessionBean.java
  
  Index: ClientSessionBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/ejb/ClientSessionBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ClientSessionBean.java    14 Jul 2001 07:34:44 -0000      1.2
  +++ ClientSessionBean.java    15 Feb 2002 06:15:55 -0000      1.3
  @@ -18,6 +18,8 @@
   */
   public class ClientSessionBean implements javax.ejb.SessionBean
   {
  +   org.apache.log4j.Category log = 
org.apache.log4j.Category.getInstance(getClass());
  +   
      private String entityName;
   
      public void create(int low, int high)
  @@ -29,7 +31,7 @@
            Session bean = lookupSession();
            bean.create(low, high);
            long end = System.currentTimeMillis();
  -         System.out.println("create ran in: "+(end - start));
  +         log.debug("create ran in: "+(end - start));
         }
         catch(Exception e)
         {
  @@ -46,7 +48,7 @@
            Session bean = lookupSession();
            bean.remove(low, high);
            long end = System.currentTimeMillis();
  -         System.out.println("remove ran in: "+(end - start));
  +         log.debug("remove ran in: "+(end - start));
         }
         catch(Exception e)
         {
  @@ -62,7 +64,7 @@
            Session bean = lookupSession();
            bean.read(id);
            long end = System.currentTimeMillis();
  -         System.out.println("read ran in: "+(end - start));
  +         log.debug("read ran in: "+(end - start));
         }
         catch(Exception e)
         {
  @@ -78,7 +80,7 @@
            Session bean = lookupSession();
            bean.read(low, high);
            long end = System.currentTimeMillis();
  -         System.out.println("read ran in: "+(end - start));
  +         log.debug("read ran in: "+(end - start));
         }
         catch(Exception e)
         {
  @@ -94,7 +96,7 @@
            Session bean = lookupSession();
            bean.write(id);
            long end = System.currentTimeMillis();
  -         System.out.println("write ran in: "+(end - start));
  +         log.debug("write ran in: "+(end - start));
         }
         catch(Exception e)
         {
  @@ -110,7 +112,7 @@
            Session bean = lookupSession();
            bean.write(low, high);
            long end = System.currentTimeMillis();
  -         System.out.println("write ran in: "+(end - start));
  +         log.debug("write ran in: "+(end - start));
         }
         catch(Exception e)
         {
  
  
  

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

Reply via email to