camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per Jørgen Walstrøm (JIRA) <j...@apache.org>
Subject [jira] [Updated] (CAMEL-6319) Not possible to advice activemq endpoint with options
Date Fri, 26 Apr 2013 11:32:17 GMT

     [ 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:
---------------------------------------

    Attachment: applicationContext-failingAdviceTest.xml
                FailingAdviceTest.java
    
> 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
>         Attachments: applicationContext-failingAdviceTest.xml
>
>
> 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

Mime
View raw message