You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Per Jørgen Walstrøm (JIRA)" <ji...@apache.org> on 2013/04/26 13:04:15 UTC

[jira] [Updated] (CAMEL-6319) Not possible to advice activemq endpoint with options

     [ https://issues.apache.org/jira/browse/CAMEL-6319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Per Jørgen Walstrøm updated CAMEL-6319:
---------------------------------------

    Description: 
I'm currently trying to advice an Endpoint which has a rather lengthy options-part:

activemq:topic:integrations?allowNullBody=false&asyncConsumer=true&jmsMessageType=Map&preserveMessageQos=true&concurrentConsumers=10

this fails when doing mockEndpointsAndSkip with the above String

without the options, the advice is no problem

final String pub = "activemq:topic:integrations?allowNullBody=false&asyncConsumer=true&concurrentConsumers=10&jmsMessageType=Map&preserveMessageQos=true";

---

from(Route.INCOMING.getUri()).to(pub).end();

---

context.getRouteDefinition(Route.INCOMING.name()).adviceWith(context, new AdviceWithRouteBuilder() {
    @Override
    public void configure() throws Exception {
        mockEndpointsAndSkip(pub);
    }
});
context.start();
MockEndpoint topicEndpointMock = getMockEndpoint("mock:" + pub);
topicEndpointMock.expectedMessageCount(1);


  was:
I'm currently trying to advice an Endpoint which has a rather lengthy options-part:

activemq:topic:integrations?allowNullBody=false&asyncConsumer=true&jmsMessageType=Map&preserveMessageQos=true&concurrentConsumers=10

this fails when doing mockEndpointsAndSkip with the above String

without the options, the advice is no problem

I've manipulated one of the Camel unit tests to illutrate the problem


        Summary: Not possible to advice activemq endpoint with options  (was: Not possible to advice endpoint with options)
    
> Not possible to advice activemq endpoint with options
> -----------------------------------------------------
>
>                 Key: CAMEL-6319
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6319
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.11.0
>            Reporter: Per Jørgen Walstrøm
>            Priority: Minor
>
> I'm currently trying to advice an Endpoint which has a rather lengthy options-part:
> activemq:topic:integrations?allowNullBody=false&asyncConsumer=true&jmsMessageType=Map&preserveMessageQos=true&concurrentConsumers=10
> this fails when doing mockEndpointsAndSkip with the above String
> without the options, the advice is no problem
> final String pub = "activemq:topic:integrations?allowNullBody=false&asyncConsumer=true&concurrentConsumers=10&jmsMessageType=Map&preserveMessageQos=true";
> ---
> from(Route.INCOMING.getUri()).to(pub).end();
> ---
> context.getRouteDefinition(Route.INCOMING.name()).adviceWith(context, new AdviceWithRouteBuilder() {
>     @Override
>     public void configure() throws Exception {
>         mockEndpointsAndSkip(pub);
>     }
> });
> context.start();
> MockEndpoint topicEndpointMock = getMockEndpoint("mock:" + pub);
> topicEndpointMock.expectedMessageCount(1);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira