You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Stijn Haezebrouck <st...@gmail.com> on 2016/01/08 11:45:38 UTC
Missing JmsQueueEndpoint.queueSize() method in 2.16.1
The queueSize() method is documented in the JavaDoc "current", see
link-to-currentJmsQueueEndpoint javadoc
<https://camel.apache.org/maven/current/camel-jms/apidocs/org/apache/camel/component/jms/JmsQueueEndpoint.html>
However, when using the current version of apache camel-jms, which is
version 2.16.1 at the time of writing, I see that the method is just not
there. (Decompiled JmsQueueEndpoint in the camel-jms jar version 2.16.1).
When switching back to 2.15.5, the method is there.
So either the method must be present in version 2.16.1, as documented. Or
either the method has disappeared in 2.16.1, but the javadoc is wrong.
Or the "current" versions does not correct to the latest release of camel,
which is 2.16.1 at the time of writing (according to
http://camel.apache.org/download.html
<http://camel.apache.org/download.html>
--
View this message in context: http://camel.465427.n5.nabble.com/Missing-JmsQueueEndpoint-queueSize-method-in-2-16-1-tp5776012.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Missing JmsQueueEndpoint.queueSize() method in 2.16.1
Posted by Stijn Haezebrouck <st...@gmail.com>.
Thanks,
JmsQueueEndpoint.getExchanges().size() solution worked for me. So I switched
back version 2.16.1 using .getExchanges().size().
I am still troubled with the fact that I cannot access a method
(queueSize()) which is exported via JMX, documented in Javadoc and available
under 2.15.5 though.
--
View this message in context: http://camel.465427.n5.nabble.com/Missing-JmsQueueEndpoint-queueSize-method-in-2-16-1-tp5776012p5776162.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Missing JmsQueueEndpoint.queueSize() method in 2.16.1
Posted by Claus Ibsen <cl...@gmail.com>.
Its from ManagedBrowsableEndpointMBean and only available in JMX.
You can get the size yourself with calling
getExchanges().size();
On Fri, Jan 8, 2016 at 11:45 AM, Stijn Haezebrouck
<st...@gmail.com> wrote:
> The queueSize() method is documented in the JavaDoc "current", see
> link-to-currentJmsQueueEndpoint javadoc
> <https://camel.apache.org/maven/current/camel-jms/apidocs/org/apache/camel/component/jms/JmsQueueEndpoint.html>
>
> However, when using the current version of apache camel-jms, which is
> version 2.16.1 at the time of writing, I see that the method is just not
> there. (Decompiled JmsQueueEndpoint in the camel-jms jar version 2.16.1).
> When switching back to 2.15.5, the method is there.
>
> So either the method must be present in version 2.16.1, as documented. Or
> either the method has disappeared in 2.16.1, but the javadoc is wrong.
>
> Or the "current" versions does not correct to the latest release of camel,
> which is 2.16.1 at the time of writing (according to
> http://camel.apache.org/download.html
> <http://camel.apache.org/download.html>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Missing-JmsQueueEndpoint-queueSize-method-in-2-16-1-tp5776012.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2