Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3441210C41 for ; Fri, 26 Apr 2013 11:04:19 +0000 (UTC) Received: (qmail 53826 invoked by uid 500); 26 Apr 2013 11:04:17 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 53756 invoked by uid 500); 26 Apr 2013 11:04:16 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 53708 invoked by uid 99); 26 Apr 2013 11:04:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 11:04:16 +0000 Date: Fri, 26 Apr 2013 11:04:15 +0000 (UTC) From: =?utf-8?Q?Per_J=C3=B8rgen_Walstr=C3=B8m_=28JIRA=29?= To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-6319) Not possible to advice activemq endpoint with options MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-6319?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Per J=C3=B8rgen Walstr=C3=B8m updated CAMEL-6319: --------------------------------------- Description:=20 I'm currently trying to advice an Endpoint which has a rather lengthy optio= ns-part: activemq:topic:integrations?allowNullBody=3Dfalse&asyncConsumer=3Dtrue&jmsM= essageType=3DMap&preserveMessageQos=3Dtrue&concurrentConsumers=3D10 this fails when doing mockEndpointsAndSkip with the above String without the options, the advice is no problem final String pub =3D "activemq:topic:integrations?allowNullBody=3Dfalse&asy= ncConsumer=3Dtrue&concurrentConsumers=3D10&jmsMessageType=3DMap&preserveMes= sageQos=3Dtrue"; --- from(Route.INCOMING.getUri()).to(pub).end(); --- context.getRouteDefinition(Route.INCOMING.name()).adviceWith(context, new A= dviceWithRouteBuilder() { @Override public void configure() throws Exception { mockEndpointsAndSkip(pub); } }); context.start(); MockEndpoint topicEndpointMock =3D getMockEndpoint("mock:" + pub); topicEndpointMock.expectedMessageCount(1); was: I'm currently trying to advice an Endpoint which has a rather lengthy optio= ns-part: activemq:topic:integrations?allowNullBody=3Dfalse&asyncConsumer=3Dtrue&jmsM= essageType=3DMap&preserveMessageQos=3Dtrue&concurrentConsumers=3D10 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 (wa= s: Not possible to advice endpoint with options) =20 > 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=C3=B8rgen Walstr=C3=B8m > Priority: Minor > > I'm currently trying to advice an Endpoint which has a rather lengthy opt= ions-part: > activemq:topic:integrations?allowNullBody=3Dfalse&asyncConsumer=3Dtrue&jm= sMessageType=3DMap&preserveMessageQos=3Dtrue&concurrentConsumers=3D10 > this fails when doing mockEndpointsAndSkip with the above String > without the options, the advice is no problem > final String pub =3D "activemq:topic:integrations?allowNullBody=3Dfalse&a= syncConsumer=3Dtrue&concurrentConsumers=3D10&jmsMessageType=3DMap&preserveM= essageQos=3Dtrue"; > --- > 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 =3D getMockEndpoint("mock:" + pub); > topicEndpointMock.expectedMessageCount(1); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira