db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/ejb/org/apache/ojb/ejb/pb StressTest.java
Date Mon, 21 Jun 2004 07:12:54 GMT
arminw      2004/06/21 00:12:54

  Modified:    src/ejb/org/apache/ojb/ejb/odmg StressTest.java
               src/ejb/org/apache/ojb/ejb/pb StressTest.java
  Log:
  jdk1.3 compatibility
  
  Revision  Changes    Path
  1.5       +4 -3      db-ojb/src/ejb/org/apache/ojb/ejb/odmg/StressTest.java
  
  Index: StressTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/ejb/org/apache/ojb/ejb/odmg/StressTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StressTest.java	5 Apr 2004 00:17:08 -0000	1.4
  +++ StressTest.java	21 Jun 2004 07:12:54 -0000	1.5
  @@ -24,6 +24,7 @@
   import java.util.List;
   
   import org.apache.commons.lang.SystemUtils;
  +import org.apache.ojb.broker.OJBRuntimeException;
   import org.apache.ojb.ejb.ArticleVO;
   import org.apache.ojb.ejb.ContextHelper;
   
  @@ -247,7 +248,7 @@
               catch(Exception e)
               {
                   e.printStackTrace();
  -                throw new RuntimeException("Can't lookup bean: " + ODMGSessionHome.JNDI_NAME,
e);
  +                throw new OJBRuntimeException("Can't lookup bean: " + ODMGSessionHome.JNDI_NAME,
e);
               }
           }
   
  @@ -264,7 +265,7 @@
               {
                   System.err.println("Error in client: " + e.getMessage());
                   test.interruptThreads();
  -                throw new RuntimeException("[" + ODMGTestClient.class.getName()
  +                throw new OJBRuntimeException("[" + ODMGTestClient.class.getName()
                           + "] Stress test client cause exception, thread was " + Thread.currentThread(),
e);
               }
           }
  
  
  
  1.5       +4 -3      db-ojb/src/ejb/org/apache/ojb/ejb/pb/StressTest.java
  
  Index: StressTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/ejb/org/apache/ojb/ejb/pb/StressTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StressTest.java	5 Apr 2004 00:17:08 -0000	1.4
  +++ StressTest.java	21 Jun 2004 07:12:54 -0000	1.5
  @@ -24,6 +24,7 @@
   import java.util.List;
   
   import org.apache.commons.lang.SystemUtils;
  +import org.apache.ojb.broker.OJBRuntimeException;
   import org.apache.ojb.ejb.ArticleVO;
   import org.apache.ojb.ejb.ContextHelper;
   
  @@ -247,7 +248,7 @@
               catch(Exception e)
               {
                   e.printStackTrace();
  -                throw new RuntimeException("Can't lookup bean: " + PBSessionHome.JNDI_NAME,
e);
  +                throw new OJBRuntimeException("Can't lookup bean: " + PBSessionHome.JNDI_NAME,
e);
               }
           }
   
  @@ -264,7 +265,7 @@
               {
                   System.err.println("Error in client: " + e.getMessage());
                   test.interruptThreads();
  -                throw new RuntimeException("[" + PBTestClient.class.getName()
  +                throw new OJBRuntimeException("[" + PBTestClient.class.getName()
                           + "] Stress test client cause exception, thread was " + Thread.currentThread(),
e);
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message