db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r379909 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PBRollbackTest.java
Date Wed, 22 Feb 2006 21:19:12 GMT
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


Mime
View raw message