camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <>
Subject Re: New JMS connection being created for every message
Date Fri, 13 Apr 2012 09:59:05 GMT
The behaviour is caused by spring jms and is normal. The spring jms code 
opens and closes the connection for every call. This is the expected 
behaviour in JEE environments.
To improve the performance you need connection pooling.

Spring provides the

for that.
You can wrap your original connection factory with it.

Alternatively you can check if MQ provides a pooling connection factory.


Am 13.04.2012 11:11, schrieb weberj:
> Hi,
> we found that Camel together with the JMS component over Websphere MQ is
> quite slow, it takes up to a second for Camel to forward a message.
> There is an old bug which might explain this behaviour:
> New JMS connection being created for every message
> I did a trace of MQ within Camel, and there were indeed a lot of MQOPEN
> calls, so I guess the problem is still there.
> Can anybody confirm this? Is the bug still there? Is there a work-around?
> Any chance of this bug getting fixed?
> Thanks,
> Juergen
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Christian Schneider

Open Source Architect
Talend Application Integration Division

View raw message