public void deployConnectionFactories(String connFactoryConfigFile,
ServiceAttributeOverrides attrOverrides) throws Exception
{
connFactoryObjectNames.clear();
ServiceDeploymentDescriptor cfdd = ServiceConfigHelper.loadConfigFile(connFactoryConfigFile);
List connFactoryElements = cfdd.query("service", "ConnectionFactory");
for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
{
MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
ObjectName on = registerAndConfigureService(connFactoryElement);
overrideAttributes(on, attrOverrides);
// dependencies have been automatically injected already
invoke(on, "create", new Object[0], new String[0]);
invoke(on, "start", new Object[0], new String[0]);
connFactoryObjectNames.add(on);
}
connFactoryElements = cfdd.query("service", "ClusteredConnectionFactory");
for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
{
MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
ObjectName on = registerAndConfigureService(connFactoryElement);
overrideAttributes(on, attrOverrides);
// dependencies have been automatically injected already
invoke(on, "create", new Object[0], new String[0]);
invoke(on, "start", new Object[0], new String[0]);
connFactoryObjectNames.add(on);
}
connFactoryElements = cfdd.query("service", "HTTPConnectionFactory");
for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
{
MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
ObjectName on = registerAndConfigureService(connFactoryElement);
overrideAttributes(on, attrOverrides);
// dependencies have been automatically injected already
invoke(on, "create", new Object[0], new String[0]);
invoke(on, "start", new Object[0], new String[0]);
connFactoryObjectNames.add(on);
}
connFactoryElements = cfdd.query("service", "ClusterPullConnectionFactory");
for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
{
MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
ObjectName on = registerAndConfigureService(connFactoryElement);