User: kimptoc 
  Date: 01/03/26 08:28:44

  Modified:    src/main/org/jboss/test/bench/servlet EJBTester.java
  Log:
  code refactor to support jikes compiler - thanx to Christian Riege
  
  Revision  Changes    Path
  1.2       +8 -8      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EJBTester.java    2000/11/29 01:15:12     1.1
  +++ EJBTester.java    2001/03/26 16:28:44     1.2
  @@ -291,13 +291,13 @@
                        int loops;
                        SimpleEntity bean;
                        
  -                     public Worker(int beanId, SimpleEntityHome home, int loops) 
throws Exception {
  +                     public Worker(int beanId, SimpleEntityHome wHome, int loops) 
throws Exception {
                                this.loops = loops;
                                
                                try { 
  -                                     bean = home.findByPrimaryKey(new 
Integer(beanId));
  +                                     bean = wHome.findByPrimaryKey(new 
Integer(beanId));
                                } catch (Exception e) {
  -                                     bean = home.create(beanId);
  +                                     bean = wHome.create(beanId);
                                }
                        }
   
  @@ -355,13 +355,13 @@
                        String otherField = new String(new char[dataSize]);
                        ComplexEntity bean;
                        
  -                     public Worker(int beanId, ComplexEntityHome home, int loops) 
throws Exception {
  +                     public Worker(int beanId, ComplexEntityHome wHome, int loops) 
throws Exception {
                                this.loops = loops;
                                
                                try { 
  -                                     bean = home.findByPrimaryKey(new 
AComplexPK(true, beanId, (long)0, (double)0, "empty"));
  +                                     bean = wHome.findByPrimaryKey(new 
AComplexPK(true, beanId, (long)0, (double)0, "empty"));
                                } catch (Exception e) {
  -                                     bean = home.create(true, beanId, (long)0, 
(double)0, "empty");
  +                                     bean = wHome.create(true, beanId, (long)0, 
(double)0, "empty");
                                }
                        }
   
  @@ -418,10 +418,10 @@
                        int loops;
                        MySession bean;
                        
  -                     public Worker(MySessionHome home, int loops) throws Exception {
  +                     public Worker(MySessionHome wHome, int loops) throws Exception 
{
                                this.loops = loops;
                                
  -                             bean = home.create();
  +                             bean = wHome.create();
                        }
   
                        public void run() {
  
  
  

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

Reply via email to