mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
125586 mward: ACE-5052: close spring application context in CIFSServerBean git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125771 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -203,11 +203,12 @@ public class CIFSServerBean extends AbstractLifecycleBean
|
|||||||
out.println("CIFS Server Test");
|
out.println("CIFS Server Test");
|
||||||
out.println("----------------");
|
out.println("----------------");
|
||||||
|
|
||||||
|
ClassPathXmlApplicationContext ctx = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Create the configuration service in the same way that Spring creates it
|
// Create the configuration service in the same way that Spring creates it
|
||||||
|
|
||||||
ApplicationContext ctx = new ClassPathXmlApplicationContext("alfresco/application-context.xml");
|
ctx = new ClassPathXmlApplicationContext("alfresco/application-context.xml");
|
||||||
|
|
||||||
// Get the CIFS server bean
|
// Get the CIFS server bean
|
||||||
|
|
||||||
@@ -267,6 +268,13 @@ public class CIFSServerBean extends AbstractLifecycleBean
|
|||||||
{
|
{
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
if (ctx != null)
|
||||||
|
{
|
||||||
|
ctx.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user