assertIsInstanceOf(ActiveMQConnectionFactory.class, template.getConnectionFactory());
}
public void testListenerContainerUsesSpringConnectionFactory() throws Exception {
JmsEndpoint endpoint = resolveMandatoryEndpoint("activemq:topic:test.foo");
JmsConsumer consumer = endpoint.createConsumer(new CamelLogger());
AbstractMessageListenerContainer listenerContainer = consumer.getListenerContainer();
assertEquals("pubSubDomain", true, listenerContainer.isPubSubDomain());
assertIsInstanceOf(PooledConnectionFactory.class, listenerContainer.getConnectionFactory());
}