You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Seb- <se...@gmail.com> on 2008/10/14 23:41:13 UTC

BAM and connection with existing endpoints/routes

Hi,
I looked at the BAM documentation and UnitTest and camel-example-bam (which
are nearly the same).
Unfortunately from the sample there is no link done with any existing
endpoint/route.
What happens to the correlated Messages ?
The only explicit routing I can find is for non-correlated expired Message
that goes to the final to("mock:overdue").

                // lets define some activities, correlating on an XPath on
the message bodies
                ActivityBuilder a = activity("seda:a").name("a")
                        .correlate(xpath("/hello/@id"));

                ActivityBuilder b = activity("seda:b").name("b")
                        .correlate(xpath("/hello/@id"));

                // now lets add some rules
                b.starts().after(a.completes())
                        .expectWithin(seconds(1))
                       
.errorIfOver(seconds(errorTimeout)).to("mock:overdue");

Thanks,
Regards,
Sébastien.
-- 
View this message in context: http://www.nabble.com/BAM-and-connection-with-existing-endpoints-routes-tp19982786s22882p19982786.html
Sent from the Camel - Users mailing list archive at Nabble.com.