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

Manik Surtani manik at jboss.org
Sun May 27 11:21:54 EDT 2007


  User: msurtani
  Date: 07/05/27 11:21:54

  Modified:    src/org/jboss/cache  CacheImpl.java
  Log:
  Fixed more BR brittleness
  
  Revision  Changes    Path
  1.79      +10 -0     JBossCache/src/org/jboss/cache/CacheImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/CacheImpl.java,v
  retrieving revision 1.78
  retrieving revision 1.79
  diff -u -b -r1.78 -r1.79
  --- CacheImpl.java	25 May 2007 16:34:51 -0000	1.78
  +++ CacheImpl.java	27 May 2007 15:21:54 -0000	1.79
  @@ -887,6 +887,7 @@
               try
               {
                  channel.close();
  +               channel.disconnect();
               }
               catch (Exception toLog)
               {
  @@ -935,10 +936,18 @@
      {
         cacheStatus = CacheStatus.STOPPING;
   
  +      // before closing the channel stop the buddy manager
  +      if (buddyManager != null && buddyManager.isEnabled())
  +      {
  +         log.debug("stop(): stopping buddy manager");
  +         buddyManager.stop();
  +      }
  +
         if (channel != null)
         {
            log.info("stop(): closing the channel");
            channel.close();
  +         channel.disconnect();
            channel = null;
            configuration.getRuntimeConfig().setChannel(null);
         }
  @@ -966,6 +975,7 @@
   
         if (cacheLoaderManager != null)
         {
  +         log.debug("stop(): stopping cache loader manager");
            cacheLoaderManager.stopCacheLoader();
         }
   
  
  
  



More information about the jboss-cvs-commits mailing list