Re: Sending message to JMS endpoint is slow every x messages

2015-09-28 Thread iasonp
I found the solution for this problem by using a PooledConnectionFactory. The following code solved the problem: final ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(jmsBrokerUrl); factory.setUseAsyncSend(true); final PooledConnectionFactory pooledConnectionFactory = new PooledC

Sending message to JMS endpoint is slow every x messages

2015-09-25 Thread iasonp
Hi, if I send a message to an ActiveMQ broker directly (without camel) this is extremly fast (<1ms). When sending messages in a camel route using the JMS endpoint it is extremly slow (> 1 sec) every x messages. Here is an example output of the provided test: sending took 81ms sending took 1081ms