You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by re...@apache.org on 2001/11/04 07:15:32 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/store AbstractStore.java

remm        01/11/03 22:15:32

  Modified:    src/share/org/apache/slide/store AbstractStore.java
  Log:
  - If something really wrong happens during enlist, mark transaction
    as rollback only.
  
  Revision  Changes    Path
  1.24      +6 -5      jakarta-slide/src/share/org/apache/slide/store/AbstractStore.java
  
  Index: AbstractStore.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/store/AbstractStore.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- AbstractStore.java	2001/10/03 20:48:41	1.23
  +++ AbstractStore.java	2001/11/04 06:15:32	1.24
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/store/AbstractStore.java,v 1.23 2001/10/03 20:48:41 remm Exp $
  - * $Revision: 1.23 $
  - * $Date: 2001/10/03 20:48:41 $
  + * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/store/AbstractStore.java,v 1.24 2001/11/04 06:15:32 remm Exp $
  + * $Revision: 1.24 $
  + * $Date: 2001/11/04 06:15:32 $
    *
    * ====================================================================
    *
  @@ -89,7 +89,7 @@
    * Abstract implementation of a store. Handles all caching operations.
    *
    * @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
  - * @version $Revision: 1.23 $
  + * @version $Revision: 1.24 $
    */
   public abstract class AbstractStore extends AbstractSimpleService
       implements Store {
  @@ -1373,11 +1373,12 @@
                   enlisted = transaction.enlistResource(service);
               } catch (Exception e) {
                   // Something went wrong.
  +                setRollbackOnly();
                   throw new ServiceAccessException(this, e.getMessage());
               }
               if (!enlisted) {
                   try {
  -                    Thread.sleep(50);
  +                    Thread.sleep(200);
                   } catch (InterruptedException e) {
                       // Then go on.
                   }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>