weaver      2004/03/01 17:40:42

  Modified:    
components/persistence/src/java/org/apache/jetspeed/components/persistence/store/ojb/otm
                        OTMStoreImpl.java
  Log:
  only close the OTMConnection if it is still open

  
  Revision  Changes    Path
  1.5       +1 -1      
jakarta-jetspeed-2/components/persistence/src/java/org/apache/jetspeed/components/persistence/store/ojb/otm/OTMStoreImpl.java
  
  Index: OTMStoreImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/persistence/src/java/org/apache/jetspeed/components/persistence/store/ojb/otm/OTMStoreImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- OTMStoreImpl.java 29 Feb 2004 06:01:12 -0000      1.4
  +++ OTMStoreImpl.java 2 Mar 2004 01:40:42 -0000       1.5
  @@ -120,7 +120,7 @@
               {
                   tx.commit();
               }
  -            if (OTMConn != null)
  +            if (OTMConn != null && !OTMConn.isClosed())
               {
                   OTMConn.close();
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to