JMSConsumerConfig config = (JMSConsumerConfig)cfg;
JMSPlatformAdapter platform = getJMSPlatformAdapter(config.getConnectionFactory());
if (platform != null)
{
return new JMSPlatformConsumerPool(this, factory, config, platform);
}
return new JMSConsumerPool(this, factory, config);
}