Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-301

Provide a means to call methods/beans/objects from a routingSlip in addition to endpoints

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.0-psc-01-00RC1
    • Fix Version/s: 2.5.0-fuse-00-00
    • Component/s: None
    • Labels:
      None

      Description

      It'd be nice if the routingSlip wasn't restricted to just endpoints, for example what about being able to specify functions like convertBodyTo() or specify a processor, type converter in the header for the routing slip to call on, for example:

      from("direct:a")
           .setHeader("routingSlip", "convertBodyTo:java.lang.String#processor:myProcessor")
           .routingSlip("routingSlip", "#");
      

      Rather than:

      from("direct:a")
           .setHeader("routingSlip", "direct:convertBodyTo#direct:someProcessor")
           .routingSlip("routingSlip", "#");
      
      from("direct:convertBodyTo")
           .convertBodyTo(java.lang.String);
      
      from("direct:someBean")
           .process(new MyProcessor());
      

      this would allow folks to have really dynamic routes if desired without having to potentially create/manage lots of little routes using direct/seda/vm.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                stlewis Stan Lewis
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: