spring-attic / spring-cloud-stream-binder-jms

Other
34 stars 56 forks source link

Failed to instantiate ActiveMQQueueProvisioner bean with PooledConnectionFactory #20

Open sumeetchhikara opened 7 years ago

sumeetchhikara commented 7 years ago

Hello,

I'm trying to configure activemq binder in my project which already using PooledConnectionFactory and it fails cause below code looking for ActiveMQConnectionFactory. I think it should be looking for ConnectionFactory or you can add support for PooledConnectionFactory .

@Bean
    ProvisioningProvider<?, ?> activeMqQueueProvisioner(ActiveMQConnectionFactory connectionFactory,
                                                        DestinationNameResolver destinationNameResolver,
                                                        JmsBinderConfigurationProperties jmsBinderConfigurationProperties) {
        return new ActiveMQQueueProvisioner(connectionFactory, destinationNameResolver, jmsBinderConfigurationProperties);
    }