You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by matsumoto <ar...@gmail.com> on 2011/10/18 12:10:32 UTC
problem with Timer based polling consumer
Hi
I have a problem with Timer based polling consumer
I want consume all messages from a JMS queue, process the message and send
them to the next queue
but I don't know how to do this and on
http://camel.apache.org/polling-consumer.html is Error formatting macro:
snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20
has anybody know how do this case ?
Arek
--
View this message in context: http://camel.465427.n5.nabble.com/problem-with-Timer-based-polling-consumer-tp4913140p4913140.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: problem with Timer based polling consumer
Posted by matsumoto <ar...@gmail.com>.
it works exactly as I wanted
thanks !!! :)
--
View this message in context: http://camel.465427.n5.nabble.com/problem-with-Timer-based-polling-consumer-tp4913140p4929289.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: problem with Timer based polling consumer
Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Oct 18, 2011 at 1:29 PM, matsumoto <ar...@gmail.com> wrote:
> no, becouse I want do this with timer
> somethilng like that
>
> timer?perioid=6000 . process(check condition) if condition is true do from
> activemq:queue with size to activemq:queue
>
I have fixed the wiki page. Will get updated later.
You can check the source code here
https://svn.apache.org/repos/asf/camel/tags/camel-2.6.0/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsTimerBasedPollingConsumerTest.java
> --
> View this message in context: http://camel.465427.n5.nabble.com/problem-with-Timer-based-polling-consumer-tp4913140p4913344.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: problem with Timer based polling consumer
Posted by matsumoto <ar...@gmail.com>.
no, becouse I want do this with timer
somethilng like that
timer?perioid=6000 . process(check condition) if condition is true do from
activemq:queue with size to activemq:queue
--
View this message in context: http://camel.465427.n5.nabble.com/problem-with-Timer-based-polling-consumer-tp4913140p4913344.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: problem with Timer based polling consumer
Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Oct 18, 2011 at 12:10 PM, matsumoto <ar...@gmail.com> wrote:
> Hi
> I have a problem with Timer based polling consumer
> I want consume all messages from a JMS queue, process the message and send
> them to the next queue
> but I don't know how to do this and on
> http://camel.apache.org/polling-consumer.html is Error formatting macro:
> snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20
>
Must you use a polling consumer?
Instead you can use an event driven consumer and have a simpler Camel route
from JMS
process Message
to JMS
> has anybody know how do this case ?
>
> Arek
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/problem-with-Timer-based-polling-consumer-tp4913140p4913140.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/