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

Manik Surtani manik at jboss.org
Thu May 24 14:14:00 EDT 2007


  User: msurtani
  Date: 07/05/24 14:14:00

  Modified:    src/org/jboss/cache/marshall  CacheMarshaller200.java
  Log:
  fixed buggy stuff around BG comms
  
  Revision  Changes    Path
  1.14      +18 -7     JBossCache/src/org/jboss/cache/marshall/CacheMarshaller200.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheMarshaller200.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/marshall/CacheMarshaller200.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- CacheMarshaller200.java	22 May 2007 12:07:18 -0000	1.13
  +++ CacheMarshaller200.java	24 May 2007 18:14:00 -0000	1.14
  @@ -207,18 +207,29 @@
         {
            if (!region.isActive())
            {
  -            //            throw new InactiveRegionException("Cannot unmarshall message for region " + fqn
  -            //                  + ". This region is inactive.");
  +            if (log.isDebugEnabled())
  +            {
  +               throw new InactiveRegionException("Cannot unmarshall message for region " + fqn + ". This region is inactive.");
  +            }
  +            else
  +            {
               throw IRE;
            }
         }
  +      }
         else if (defaultInactive)
         {
  +         if (log.isDebugEnabled())
  +         {
            // No region but default inactive means region is inactive
  -         //         throw new InactiveRegionException("Cannot unmarshall message for region " + fqn + ". By default region " + fqn
  -         //               + " is inactive.");
  +            throw new InactiveRegionException("Cannot unmarshall message for region " + fqn + ". By default region " + fqn
  +                    + " is inactive.");
  +         }
  +         else
  +         {
            throw IRE;
         }
  +      }
   
         return region;
      }
  
  
  



More information about the jboss-cvs-commits mailing list