* @throws DeploymentManagerCreationException
*/
protected DeploymentManager getDeploymentManager() throws IOException, DeploymentManagerCreationException {
if (deploymentManager == null) {
// Register the Geronimo factory
DeploymentFactoryManager manager = DeploymentFactoryManager.getInstance();
manager.registerDeploymentFactory(new DeploymentFactoryImpl());
String uri = URI_PREFIX + "://" + hostname + ":" + port;
DeploymentFactoryManager factoryManager = DeploymentFactoryManager.getInstance();
deploymentManager = factoryManager.getDeploymentManager(uri, username, password);
}
return deploymentManager;
}