From ccd0614e8a675598504c0e6b344acd40a54df802 Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Tue, 9 Mar 2010 00:47:59 +0000 Subject: [PATCH] Hack-fix for Repository start/stop issues - Nick will investigate further - JBPM is shutting down Hibernate (along with shared resources) in a finalize() git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19135 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org/alfresco/RepositoryStartStopTest.java | 8 ++++---- .../cache/InternalEhCacheManagerFactoryBean.java | 15 +++++++++++++-- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/source/java/org/alfresco/RepositoryStartStopTest.java b/source/java/org/alfresco/RepositoryStartStopTest.java index 39c1d89ee0..f4015754ea 100644 --- a/source/java/org/alfresco/RepositoryStartStopTest.java +++ b/source/java/org/alfresco/RepositoryStartStopTest.java @@ -168,10 +168,10 @@ public class RepositoryStartStopTest extends TestCase * a context twice without error, using it * when running. * - * DISABLED - the full context breaks + * - the full context breaks * when you close and re-open it! */ - public void DISABLEDtestOpenCloseOpenCloseFull() throws Exception + public void testOpenCloseOpenCloseFull() throws Exception { assertNoCachedApplicationContext(); @@ -210,10 +210,10 @@ public class RepositoryStartStopTest extends TestCase * 4 different times, sometimes full ones, * sometimes minimal ones with no autostart. * - * DISABLED - the full context breaks + * - the full context breaks * when you close and re-open it! */ - public void DISABLEDtestOpenCloseRepeatedly() throws Exception { + public void testOpenCloseRepeatedly() throws Exception { assertNoCachedApplicationContext(); // Open the minimal one and test diff --git a/source/java/org/alfresco/repo/cache/InternalEhCacheManagerFactoryBean.java b/source/java/org/alfresco/repo/cache/InternalEhCacheManagerFactoryBean.java index da28737b55..a21cc70e00 100644 --- a/source/java/org/alfresco/repo/cache/InternalEhCacheManagerFactoryBean.java +++ b/source/java/org/alfresco/repo/cache/InternalEhCacheManagerFactoryBean.java @@ -190,6 +190,14 @@ public class InternalEhCacheManagerFactoryBean implements FactoryBean