portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/pipeline/valve/impl CleanupValveImpl.java
Date Sun, 07 Nov 2004 18:43:35 GMT
taylor      2004/11/07 10:43:35

  Modified:    portal/src/java/org/apache/jetspeed/pipeline/valve/impl
                        CleanupValveImpl.java
  Log:
  removing refs to deprecated persistent store
  
  Revision  Changes    Path
  1.6       +3 -25     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/pipeline/valve/impl/CleanupValveImpl.java
  
  Index: CleanupValveImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/pipeline/valve/impl/CleanupValveImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CleanupValveImpl.java	2 Aug 2004 18:57:27 -0000	1.5
  +++ CleanupValveImpl.java	7 Nov 2004 18:43:35 -0000	1.6
  @@ -22,8 +22,6 @@
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  -import org.apache.jetspeed.components.persistence.store.PersistenceStore;
  -import org.apache.jetspeed.components.persistence.store.Transaction;
   import org.apache.jetspeed.pipeline.PipelineException;
   import org.apache.jetspeed.pipeline.valve.AbstractValve;
   import org.apache.jetspeed.pipeline.valve.CleanupValve;
  @@ -50,11 +48,9 @@
   
       private static final Log log = LogFactory.getLog(CleanupValveImpl.class);
   
  -    private PersistenceStore persistenceStore;
       
  -    public CleanupValveImpl(PersistenceStore persistenceStore)
  +    public CleanupValveImpl()
       {
  -        this.persistenceStore = persistenceStore;
       }
   
       /**
  @@ -88,26 +84,8 @@
               log.error("CleanupValveImpl: failed while trying to render fragment " + fragment);
               log.error("CleanupValveImpl: Unable to complete all renderings", e);
           }        
  -        
  -        try
  -        {
  -            if(persistenceStore != null)
  -            {
  -                Transaction tx = persistenceStore.getTransaction();
  -                if(tx.isOpen())
  -                {
  -                    tx.commit();
  -                }                
  -                persistenceStore.close();
  -            }
  -        }
  -        catch (Exception e1)
  -        {
  -            log.warn("Error closing out current request's PersistenceStore: "+e1.toString(),
e1);
  -        }
  -
       }
  -
  +    
       /**
        * @see java.lang.Object#toString()
        */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message