I am using camel 1.5 with WebSphereMQ 6. I configued a connectionFactory:
<bean id="qcf" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate">
<ref bean="jndiTemplate" />
</property>
<property name="jndiName">
<value>ehr_qcf</value>
</property>
</bean>
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">
com.sun.jndi.fscontext.RefFSContextFactory
</prop>
<prop key="java.naming.provider.url">
file:/c:/usr/local/JNDI-Directory
</prop>
</props>
</property>
</bean>
Then set up my camel to receive messages this way:
ConnectionFactory connectionFactory = (ConnectionFactory)ctx.getBean("qcf")
context.addComponent("jms",
JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
context.addRoutes(new RouteBuilder() {
public void configure() {
from("jms:queue:queue_receiver").process(new Processor() {
public void process(Exchange e) {
log.info("Message Picked up: " + e.getIn());
}
});
}
});
context.start();
It takes like 45 seconds to receive a response....Anybody experiencing
similar response time?
--
View this message in context:
http://www.nabble.com/Speed-of-Messages-with-WebSphereMQ-tp21098223s22882p21098223.html
Sent from the Camel - Development mailing list archive at Nabble.com.