public void init() throws InitializationException {
if (repositoryFactory == null) {
String errorMessage = "Failed to initialize auxiliary storage persistency manager. JCR repository factory is null.";
LOG.log(Level.SEVERE, errorMessage);
throw new InitializationException(errorMessage);
}
HashMap<String,String> parameters = new HashMap<String, String>();
parameters.put(RepositoryFactoryImpl.REPOSITORY_HOME, storageDirPath);
parameters.put(RepositoryFactoryImpl.REPOSITORY_CONF, "etc/org.talend.esb.auxiliary.repo.xml");
try {
repository = repositoryFactory.getRepository(parameters);
} catch (RepositoryException e) {
String errorMessage = "Failed to initialize auxiliary storage persistency manager. " +
"Failed to inititalize jackrabbit repository: " + e.getMessage();
LOG.log(Level.SEVERE, errorMessage);
throw new InitializationException(errorMessage);
}
}