camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: enrich() and ExchangeSentEvents
Date Thu, 03 Jul 2014 03:17:01 GMT
FYI, I just created JIRA[1] for it.

[1]https://issues.apache.org/jira/browse/CAMEL-7570

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On July 3, 2014 at 12:20:19 AM, Claus Ibsen (claus.ibsen@gmail.com) wrote:
> Hi
>  
> Yeah this can be improved, fell free to log a JIRA ticket about this
> http://camel.apache.org/support.html
>  
> On Wed, Jul 2, 2014 at 5:46 PM, Jörn Gersdorf wrote:
> > Hi,
> >
> > I'm playing with Camel 2.12 and the event notification system and
> > discovered a difference in behavior using enrich() as opposed to
> > inOnly()/inOut() wrt events sent out.
> >
> > When using inOnly() or inOut() in the example below I see an
> > ExchangeSendingEvent and an ExchangeSentEvent when sending/receiving to the
> > activemq endpoint.
> >
> > However, and this is confusing, when using enrich() neither
> > ExchangeSendingEvent nor ExchangeSentEvent is produced.
> >
> > Is this by purpose or a bug?
> >
> > Kind regards,
> > Jörn
> >
> > Example route:
> >
> > from("direct:start")
> > .enrich("activemq:enricher")
> > // .inOnly("activemq:enricher")
> > // .inOut("activemq:enricher")
> > .to("mock:end");
> >
> > from("activemq:enricher")
> > .setBody(simple("Hello, ${body}!"));
>  
>  
>  
> --
> 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/
>  


Mime
View raw message