[ 
https://issues.apache.org/jira/browse/CAMEL-16749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17368611#comment-17368611
 ] 

Xilai Dai commented on CAMEL-16749:
-----------------------------------

Thanks [~acosentino] !

Then have to code something like this:
{code:java}
String brokerURL = "tcp://xx.xx.xx.xx:61616";
ActiveMQComponent component = ActiveMQComponent.activeMQComponent(String 
brokerURL);
camelContext.addComponent("AMQComponent", component);
from(timer:xxx)...to("AMQComponent:queue:abc") {code}

> Unknown option brokerURL Exception in camel-activemq component
> --------------------------------------------------------------
>
>                 Key: CAMEL-16749
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16749
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-activemq
>    Affects Versions: 3.9.0, 3.10.0
>            Reporter: Xilai Dai
>            Priority: Major
>
> Simple route, specify the "brokerURL" option, e.g
> from(timer:xxx)...to("activemq:queue:abc?brokerURL=tcp://localhost:61616")
> then ResolveEndpointFailedException when running the route
> {code:java}
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve 
> endpoint: activemq://queue:abc?brokerURL=tcp://localhost:61616 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=[{brokerURL=tcp://localhost:61616}]
>       at 
> org.apache.camel.support.DefaultComponent.validateParameters(DefaultComponent.java:299)
>       at 
> org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:192)
>       at 
> org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:929)
>  {code}
>  
> Event though the "brokerURL" option is documented as suppported,
> https://camel.apache.org/components/latest/activemq-component.html



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to