You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2006/02/22 22:19:12 UTC

svn commit: r379909 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PBRollbackTest.java

Author: arminw
Date: Wed Feb 22 13:19:10 2006
New Revision: 379909

URL: http://svn.apache.org/viewcvs?rev=379909&view=rev
Log:
fix PB leaks

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PBRollbackTest.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PBRollbackTest.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PBRollbackTest.java?rev=379909&r1=379908&r2=379909&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PBRollbackTest.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PBRollbackTest.java Wed Feb 22 13:19:10 2006
@@ -268,6 +268,8 @@
         q = new QueryByCriteria(Project.class, c);
         beforeRollback = broker.getCount(q);
 
+        // close current used instance
+        broker.close();
         broker = PersistenceBrokerFactory.defaultPersistenceBroker();
         try
         {



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