Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
jboss-fuse-6.1
-
None
-
%
-
Description
According to the Camel JMS documentation (1), the receiveTimeout for the JMS component is, by default, “None”, which implies that there is no timeout and thus the corresponding receive should block indefinitely. However, the default receiveTimeout is 1000, which happens to be the default for the Spring DMLC.
In JmsConfiguration.java, the default receiveTimeout is being initialized to -1.
private long receiveTimeout = -1;
However, this snippet of code in JmsConfiguration.java does not assign it to the underlying Spring DMLC.
if (receiveTimeout >= 0) {
container.setReceiveTimeout(receiveTimeout);
}