Index: lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/service/IRepositoryService.java =================================================================== RCS file: /usr/local/cvsroot/lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/service/IRepositoryService.java,v diff -u -r1.10 -r1.11 --- lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/service/IRepositoryService.java 29 May 2006 07:22:43 -0000 1.10 +++ lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/service/IRepositoryService.java 23 Jun 2006 06:14:16 -0000 1.11 @@ -59,18 +59,17 @@ /** String used to define service in Spring context */ public static final String REPOSITORY_SERVICE_ID = "repositoryService"; - /** String used to define the path to the content repository context file. */ - public static final String REPOSITORY_CONTEXT_PATH = - "/org/lamsfoundation/lams/contentrepository/applicationContext.xml"; - /** String used to define the path to the local datasource version of the - * lams.jar context file*/ - public static final String CORE_CONTEXT_PATH = - "/org/lamsfoundation/lams/applicationContext.xml"; - /** String used to define the path to the local datasource version of the - * lams.jar context file*/ - public static final String CORE_LOCAL_CONTEXT_PATH = - "/org/lamsfoundation/lams/localApplicationContext.xml"; - + /** Context files, using the JNDI datasource. Use for JBOSS */ + public static final String[] REPOSITORY_CONTEXT_PATH = new String[] { + "/org/lamsfoundation/lams/contentrepository/applicationContext.xml", + "/org/lamsfoundation/lams/applicationContext.xml", + "/org/lamsfoundation/lams/toolApplicationContext.xml"}; + /** Context files, using a local datasource. Use for junit testing */ + public static final String[] REPOSITORY_LOCAL_CONTEXT_PATH = new String[] { + "/org/lamsfoundation/lams/contentrepository/applicationContext.xml", + "/org/lamsfoundation/lams/localApplicationContext.xml", + "/org/lamsfoundation/lams/toolApplicationContext.xml"}; + /** * Login, creating a new ticket for the given credentials and specified * workspace. If login fails, a LoginException is thrown and Index: lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/service/RepositoryProxy.java =================================================================== RCS file: /usr/local/cvsroot/lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/service/RepositoryProxy.java,v diff -u -r1.4 -r1.5 --- lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/service/RepositoryProxy.java 5 Apr 2006 23:24:18 -0000 1.4 +++ lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/service/RepositoryProxy.java 23 Jun 2006 06:14:16 -0000 1.5 @@ -51,8 +51,7 @@ public static IRepositoryService getRepositoryService() { - String[] contextPaths = new String[] {IRepositoryService.CORE_CONTEXT_PATH, - IRepositoryService.REPOSITORY_CONTEXT_PATH}; + String[] contextPaths = IRepositoryService.REPOSITORY_CONTEXT_PATH; ApplicationContext context = new ClassPathXmlApplicationContext(contextPaths); if ( context == null ) @@ -70,8 +69,7 @@ */ public static IRepositoryService getLocalRepositoryService() { - String[] contextPaths = new String[] {IRepositoryService.CORE_LOCAL_CONTEXT_PATH, - IRepositoryService.REPOSITORY_CONTEXT_PATH}; + String[] contextPaths = IRepositoryService.REPOSITORY_LOCAL_CONTEXT_PATH; ApplicationContext context = new ClassPathXmlApplicationContext(contextPaths); if ( context == null )