mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALFCOM-2816: Changes for JBoss v5.0.1.GA compatibility
- All code that resolves classpath resources goes through JBossEnabledResourceLoader with VFS support - JBossEnabledResourcePatternResolver can handle recursion within VFS directory structures - Reflection used to avoid runtime dependency on JBoss classes - resource-ref declared in jboss-web.xml - Work around incorrect treatment of env-entry-value tag in web.xml git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14106 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -132,10 +132,9 @@ public class SchemaBootstrap extends AbstractLifecycleBean
|
||||
|
||||
public static final int DEFAULT_MAX_STRING_LENGTH = 1024;
|
||||
private static volatile int maxStringLength = DEFAULT_MAX_STRING_LENGTH;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private ResourcePatternResolver rpr = new PathMatchingResourcePatternResolver(this.getClass().getClassLoader());
|
||||
|
||||
|
||||
/**
|
||||
* @see PropertyValue#DEFAULT_MAX_STRING_LENGTH
|
||||
@@ -838,7 +837,6 @@ public class SchemaBootstrap extends AbstractLifecycleBean
|
||||
// replace the dialect placeholder
|
||||
String dialectScriptUrl = scriptUrl.replaceAll(PLACEHOLDER_SCRIPT_DIALECT, dialectClazz.getName());
|
||||
// get a handle on the resource
|
||||
ResourcePatternResolver rpr = new PathMatchingResourcePatternResolver(this.getClass().getClassLoader());
|
||||
Resource resource = rpr.getResource(dialectScriptUrl);
|
||||
if (!resource.exists())
|
||||
{
|
||||
@@ -1147,6 +1145,9 @@ public class SchemaBootstrap extends AbstractLifecycleBean
|
||||
@Override
|
||||
protected synchronized void onBootstrap(ApplicationEvent event)
|
||||
{
|
||||
// Use the application context to load resources
|
||||
rpr = (ApplicationContext)event.getSource();
|
||||
|
||||
// do everything in a transaction
|
||||
Session session = getSessionFactory().openSession();
|
||||
Connection connection = null;
|
||||
|
Reference in New Issue
Block a user