Confused ... now I have two more questions :-) (1) When I look at RepositoryFactoryImpl.java I can seen that, in case REPOSITORY_HOME is set in the Map passed to getRepository(cfgMap), it ALWAYS results in a TransientRepository. What's the idea behind that?
(2) At the moment I do the following (which results in a TransientRepository): cfgMap.put(RepositoryFactoryImpl.REPOSITORY_CONF, configLocation); cfgMap.put(RepositoryFactoryImpl.REPOSITORY_HOME, repositoryLocation); RepositoryFactory repositoryFactory = new RepositoryFactoryImpl(); repository = repositoryFactory.getRepository(cfgMap); I thought when I do this I set config file and repository directory correctly, no? So are you saying that I have to do the following instead to get a non-TransientRepository? RepositoryConfig config = RepositoryConfig.create(xml, dir); Repository repository = RepositoryImpl.create(config) (where "xml" (File) = configuration file and "dir" (File) = repository home directory) On Tue, Jun 17, 2014 at 1:42 PM, KÖLL Claus <[email protected]> wrote: > Hi Chris. > > In a JCA Environment a TransienRepository will be created if you a > repository uri. > You should use the two params homedir and configfile ... > > Please see JCR-3129 for more information .. > > greets > claus >
