// m_resourceIndex =
// (ResourceIndex) getServer()
// .getModule("org.fcrepo.server.resourceIndex.ResourceIndex");
// now get the connectionpool
ConnectionPoolManager cpm =
(ConnectionPoolManager) getServer()
.getModule("org.fcrepo.server.storage.ConnectionPoolManager");
if (cpm == null) {
throw new ModuleInitializationException("ConnectionPoolManager not loaded.",
getRole());
}
try {
if (m_storagePool == null) {
m_connectionPool = cpm.getPool();
} else {
m_connectionPool = cpm.getPool(m_storagePool);
}
} catch (ConnectionPoolNotFoundException cpnfe) {
String storagePool = (m_storagePool == null)?"[null]":m_storagePool;
throw new ModuleInitializationException("Couldn't get required "
+ "connection pool " + storagePool + " ...wasn't found", getRole());