You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Jonasty <jo...@gmail.com> on 2015/03/25 10:14:23 UTC

Failed to create route on activemq

I have following code: 

context.addRoutes(new RouteBuilder() { 
                public void configure() throws JMSException { 
                    from("activemq:queue:KBC?noop=true").process(new
QueueProcessor()); 
                } 
            }); 

The queueprocessor writes a log to the database. I want to monitor messqges
on the queue. So I don't want to purge them. Only notify when they go in and
when they go out. 
For the file system there exist a noop property. This actualy doesn't work
for activemq because I get folowwing error: 

exception: Failed to create route route1:
Route(route1)[[From[activemq:queue:KBC?noop=true]] -> [proce... because of
Failed to resolve endpoint: activemq://queue:KBC?noop=true due to: Failed to
resolve endpoint: activemq://queue:KBC?noop=true due to: There are 1
parameters that couldn't be set on the endpoint. Check the uri if the
parameters are spelt correctly and that they are properties of the endpoint.
Unknown parameters=[{noop=true}] 

So what should I do? What is the variant of noop for activemq? 
Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/Failed-to-create-route-on-activemq-tp5764743.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Failed to create route on activemq

Posted by Claus Ibsen <cl...@gmail.com>.
The activemq (or jms) component do not have a option named noop

The options is listed here
http://camel.apache.org/jms

For monitoring ActiveMQ you can check its website, there is a search
box you can type in keywords and find links to read first.
http://activemq.apache.org/

On Wed, Mar 25, 2015 at 10:14 AM, Jonasty <jo...@gmail.com> wrote:
> I have following code:
>
> context.addRoutes(new RouteBuilder() {
>                 public void configure() throws JMSException {
>                     from("activemq:queue:KBC?noop=true").process(new
> QueueProcessor());
>                 }
>             });
>
> The queueprocessor writes a log to the database. I want to monitor messqges
> on the queue. So I don't want to purge them. Only notify when they go in and
> when they go out.
> For the file system there exist a noop property. This actualy doesn't work
> for activemq because I get folowwing error:
>
> exception: Failed to create route route1:
> Route(route1)[[From[activemq:queue:KBC?noop=true]] -> [proce... because of
> Failed to resolve endpoint: activemq://queue:KBC?noop=true due to: Failed to
> resolve endpoint: activemq://queue:KBC?noop=true due to: There are 1
> parameters that couldn't be set on the endpoint. Check the uri if the
> parameters are spelt correctly and that they are properties of the endpoint.
> Unknown parameters=[{noop=true}]
>
> So what should I do? What is the variant of noop for activemq?
> Thanks
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Failed-to-create-route-on-activemq-tp5764743.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/