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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 2.5.0-fuse-00-00
    • 2.1.0-psc-01-00RC1
    • None
    • 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.

      Attachments

        Activity

          People

            cibsen@redhat.com Claus Ibsen
            stlewis_2 Stan Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: