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

Brian Stansberry brian.stansberry at jboss.com
Tue May 22 21:36:46 EDT 2007


  User: bstansberry
  Date: 07/05/22 21:36:46

  Modified:    src/org/jboss/cache/pojo/jmx  PojoCacheJmxWrapper.java
  Log:
  Don't destroy failed cache from stop
  Set LifecycleState in create
  
  Revision  Changes    Path
  1.8       +3 -4      JBossCache/src/org/jboss/cache/pojo/jmx/PojoCacheJmxWrapper.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PojoCacheJmxWrapper.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/pojo/jmx/PojoCacheJmxWrapper.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- PojoCacheJmxWrapper.java	22 May 2007 22:52:52 -0000	1.7
  +++ PojoCacheJmxWrapper.java	23 May 2007 01:36:46 -0000	1.8
  @@ -125,6 +125,8 @@
         registerPlainCache();
         
         plainCacheWrapper.create();
  +      
  +      lifecycleState = LifecycleState.CREATED;
      }
   
      public void start() throws PojoCacheException
  @@ -159,9 +161,6 @@
      {
         if (LifecycleUtil.stopAllowed(lifecycleState) == false)
         {
  -         if (LifecycleUtil.needToDestroyFailedCache(lifecycleState))
  -            destroy();
  -         else
               return;
         }
         
  
  
  



More information about the jboss-cvs-commits mailing list