jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frizz <frizzthe...@googlemail.com>
Subject Re: Repository is started up and shut down in every call
Date Tue, 17 Jun 2014 14:07:27 GMT
Still I don't understand why (1) results in a TransientRepository whereas
(2) does not - since both get a config file and a repository directory
location.

(1)
cfgMap.put(RepositoryFactoryImpl.REPOSITORY_CONF, configLocation);
cfgMap.put(RepositoryFactoryImpl.REPOSITORY_HOME, repositoryLocation);

RepositoryFactory repositoryFactory = new RepositoryFactoryImpl();
repository = repositoryFactory.getRepository(cfgMap);

(2)
RepositoryConfig config = RepositoryConfig.create(xml, dir);
Repository repository = RepositoryImpl.create(config)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message