public void initialize(Map<String, Object> externalProperty)
{
setExternalProperties(externalProperty);
initializePropertyReader();
// Initialize HBase configuration
PersistenceUnitMetadata puMetadata = KunderaMetadataManager.getPersistenceUnitMetadata(kunderaMetadata, getPersistenceUnit());
String node = null;
String port = null;
String poolSize = null;
if (externalProperty != null)
{
node = (String) externalProperty.get(PersistenceProperties.KUNDERA_NODES);
port = (String) externalProperty.get(PersistenceProperties.KUNDERA_PORT);
poolSize = (String) externalProperty.get(PersistenceProperties.KUNDERA_POOL_SIZE_MAX_ACTIVE);
}
if (node == null)
{
node = puMetadata.getProperties().getProperty(PersistenceProperties.KUNDERA_NODES);
}
if (port == null)
{
port = puMetadata.getProperties().getProperty(PersistenceProperties.KUNDERA_PORT);
}
if (poolSize == null)
{
poolSize = puMetadata.getProperties().getProperty(PersistenceProperties.KUNDERA_POOL_SIZE_MAX_ACTIVE);
}
if (StringUtils.isEmpty(poolSize))
{
this.poolSize = DEFAULT_POOL_SIZE;