Author: tchemit Date: 2013-10-10 14:59:29 +0200 (Thu, 10 Oct 2013) New Revision: 2816 Url: http://nuiton.org/projects/topia/repository/revisions/2816 Log: pass to version 2.8.1.1-SNAPSHOT fixes #2869: Hibernate factory is closed by a child context Modified: branches/topia-2.8.1.1/pom.xml branches/topia-2.8.1.1/topia-persistence/pom.xml branches/topia-2.8.1.1/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaContextImpl.java branches/topia-2.8.1.1/topia-service-migration/pom.xml branches/topia-2.8.1.1/topia-service-replication/pom.xml branches/topia-2.8.1.1/topia-service-security/pom.xml Modified: branches/topia-2.8.1.1/pom.xml =================================================================== --- branches/topia-2.8.1.1/pom.xml 2013-10-10 12:44:59 UTC (rev 2815) +++ branches/topia-2.8.1.1/pom.xml 2013-10-10 12:59:29 UTC (rev 2816) @@ -37,7 +37,7 @@ </parent> <artifactId>topia</artifactId> - <version>2.8.1</version> + <version>2.8.1.1-SNAPSHOT</version> <modules> <module>topia-persistence</module> @@ -79,9 +79,15 @@ <!-- ************************************************************* --> <scm> - <connection>scm:svn:http://svn.nuiton.org/svn/topia/tags/topia-2.8.1</connection> - <developerConnection>scm:svn:http://svn.nuiton.org/svn/topia/tags/topia-2.8.1</developerConnection> - <url>http://nuiton.org/projects/topia/repository/show/branches/tags/topia-2.8.1</url> + <connection> + scm:svn:http://svn.nuiton.org/svn/topia/branches/topia-2.8.1.1 + </connection> + <developerConnection> + scm:svn:http://svn.nuiton.org/svn/topia/branches/topia-2.8.1.1 + </developerConnection> + <url> + http://nuiton.org/projects/topia/repository/show/branches/topia-2.8.1.1 + </url> </scm> <distributionManagement> Modified: branches/topia-2.8.1.1/topia-persistence/pom.xml =================================================================== --- branches/topia-2.8.1.1/topia-persistence/pom.xml 2013-10-10 12:44:59 UTC (rev 2815) +++ branches/topia-2.8.1.1/topia-persistence/pom.xml 2013-10-10 12:59:29 UTC (rev 2816) @@ -35,7 +35,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>topia</artifactId> - <version>2.8.1</version> + <version>2.8.1.1-SNAPSHOT</version> </parent> <groupId>org.nuiton.topia</groupId> Modified: branches/topia-2.8.1.1/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaContextImpl.java =================================================================== --- branches/topia-2.8.1.1/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaContextImpl.java 2013-10-10 12:44:59 UTC (rev 2815) +++ branches/topia-2.8.1.1/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaContextImpl.java 2013-10-10 12:59:29 UTC (rev 2816) @@ -863,12 +863,18 @@ */ @Override protected void finalize() throws Throwable { - if (hibernateFactory != null) { - closeContext(); - hibernateFactory.close(); - closed = true; - log.debug("TopiaContext finalized"); +// if (hibernateFactory != null) { +// closeContext(); +// hibernateFactory.close(); +// closed = true; +// log.debug("TopiaContext finalized"); +// } + if (!closed) { + + // means resource was not well closed, can't accept this! + throw new TopiaException("TopiaContext "+this+" was not closed!"); } + super.finalize(); } @Override Modified: branches/topia-2.8.1.1/topia-service-migration/pom.xml =================================================================== --- branches/topia-2.8.1.1/topia-service-migration/pom.xml 2013-10-10 12:44:59 UTC (rev 2815) +++ branches/topia-2.8.1.1/topia-service-migration/pom.xml 2013-10-10 12:59:29 UTC (rev 2816) @@ -35,7 +35,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>topia</artifactId> - <version>2.8.1</version> + <version>2.8.1.1-SNAPSHOT</version> </parent> <groupId>org.nuiton.topia</groupId> Modified: branches/topia-2.8.1.1/topia-service-replication/pom.xml =================================================================== --- branches/topia-2.8.1.1/topia-service-replication/pom.xml 2013-10-10 12:44:59 UTC (rev 2815) +++ branches/topia-2.8.1.1/topia-service-replication/pom.xml 2013-10-10 12:59:29 UTC (rev 2816) @@ -35,7 +35,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>topia</artifactId> - <version>2.8.1</version> + <version>2.8.1.1-SNAPSHOT</version> </parent> <groupId>org.nuiton.topia</groupId> Modified: branches/topia-2.8.1.1/topia-service-security/pom.xml =================================================================== --- branches/topia-2.8.1.1/topia-service-security/pom.xml 2013-10-10 12:44:59 UTC (rev 2815) +++ branches/topia-2.8.1.1/topia-service-security/pom.xml 2013-10-10 12:59:29 UTC (rev 2816) @@ -35,7 +35,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>topia</artifactId> - <version>2.8.1</version> + <version>2.8.1.1-SNAPSHOT</version> </parent> <groupId>org.nuiton.topia</groupId>