[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...

Manik Surtani manik at jboss.org
Tue Jul 17 10:59:10 EDT 2007


  User: msurtani
  Date: 07/07/17 10:59:10

  Modified:    src/org/jboss/cache/interceptors  TxInterceptor.java
  Log:
  JBCACHE-1100
  
  Revision  Changes    Path
  1.87      +3 -0      JBossCache/src/org/jboss/cache/interceptors/TxInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TxInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/TxInterceptor.java,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -b -r1.86 -r1.87
  --- TxInterceptor.java	11 Jul 2007 14:11:11 -0000	1.86
  +++ TxInterceptor.java	17 Jul 2007 14:59:10 -0000	1.87
  @@ -987,6 +987,8 @@
   
         public void beforeCompletion()
         {
  +         if (!cache.getCacheStatus().allowInvocations()) throw new IllegalStateException("Cache not in STARTED state!");
  +
            if (log.isTraceEnabled()) log.trace("Running beforeCompletion on gtx " + gtx);
            entry = txTable.get(gtx);
            if (entry == null)
  @@ -1005,6 +1007,7 @@
         // it is supposed to be post commit not actually run the commit
         public void afterCompletion(int status)
         {
  +         if (!cache.getCacheStatus().allowInvocations()) throw new IllegalStateException("Cache not in STARTED state!");
            try
            {
               // could happen if a rollback is called and beforeCompletion() doesn't get called.
  
  
  



More information about the jboss-cvs-commits mailing list