portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/persistence/src/java/org/apache/jetspeed/components/persistence/store/ojb/otm OTMStoreImpl.java
Date Tue, 02 Mar 2004 01:40:42 GMT
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: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message