Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3539

Add route endpoint to let end users send messages to other routes using route scheme naming

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • 3.0.0
    • camel-core
    • None

    Description

      For example

      ...
      <to uri="route:sendMail"/>
      ...
      

      And then we can have a route for that

      <route>
         <from uri="route:sendMail"/>
         ...
      </route>
      

      In reality its just like a direct: endpoint but using route as scheme name. And in this case the id of the route will use the name from the uri, so it will name the route sendMail. Then you dont need to assign an explicit id.

      Now suppose the sendMail route also have another source input such as from a jms queue

      <route id="sendMail>
         <from uri="jms:queue:mail.out"/>
         ...
      </route>
      

      This route is now having the id sendMail which you can send message to using the scheme route:sendMail.
      But the route also consumes messages from a JMS queue.

      Attachments

        1. CAMEL-3539.patch
          16 kB
          Benjamin P. O'Day

        Activity

          People

            Unassigned Unassigned
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: