camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Petr Juza (JIRA)" <>
Subject [jira] [Created] (CAMEL-6300) AdviceWith doesn't work with doTry
Date Sun, 21 Apr 2013 19:51:15 GMT
Petr Juza created CAMEL-6300:

             Summary: AdviceWith doesn't work with doTry
                 Key: CAMEL-6300
             Project: Camel
          Issue Type: Bug
          Components: tests
    Affects Versions: 2.10.4
         Environment: Java 6, macos
            Reporter: Petr Juza
             Fix For: 2.10.5, 2.11.1

I have the following route definition:
        from("direct:billing_" + operation)
                .errorHandler(noErrorHandler()) // propagate exceptions to the parent route


                .beanRef(BILLING_CUSTOMER_ROUTE_BEAN, "createRequestFor" + WordUtils.capitalize(operation))

                 // SetCustomer -> XML

                    .to(uri + "?messageSender=#billingSender").id("toURI")
                    .setProperty(exPropertyName, property(Exchange.EXCEPTION_CAUGHT))


                    // XML -> SetCustomerResponse

And I would like to replace TO in the tests:
                .adviceWith(getCamelContext(), new AdviceWithRouteBuilder() {
                    public void configure() throws Exception {                        weaveByType(ToDefinition.class).replace().process(new
Processor() {
                            public void process(Exchange exchange) throws Exception {
                                throw new AlreadyExistsException("msg", new AlreadyExists());

When I use weaveById("toURI") or weaveByToString(), it doesn't work neither.

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:

View raw message