workManager.setGBeanLink(data.workManager); //todo
// Connection Factories
if(data.getConnectionFactoryCount() > 0) {
ConnectionDefinition[] defs = new ConnectionDefinition[data.getConnectionFactoryCount()];
for (int i = 0; i < defs.length; i++) {
defs[i] = new ConnectionDefinition();
}
ra.setConnectionDefinition(defs);
for (int i = 0; i < data.getConnectionFactories().size(); i++) {
JMSConnectionFactoryData factoryData = (JMSConnectionFactoryData) data.getConnectionFactories().get(i);
JMSProviderData.ConnectionDefinition providerData = provider.getConnectionDefinitions()[factoryData.getFactoryType()];
ConnectionDefinition def = defs[i];
def.setConnectionFactoryInterface(providerData.getConnectionFactoryInterface());
ConnectionDefinitionInstance instance = new ConnectionDefinitionInstance();
def.setConnectionInstance(new ConnectionDefinitionInstance[]{instance});
if(providerData.getConnectionFactoryInterface().equals("javax.jms.ConnectionFactory")) {
instance.setImplementedInterface(new String[]{"javax.jms.QueueConnectionFactory","javax.jms.TopicConnectionFactory"});
}
instance.setName(factoryData.getInstanceName());
SinglePool pool = new SinglePool();