camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Gottman (JIRA)" <>
Subject [jira] Created: (CAMEL-1699) pipeline function should have 0-parameter version
Date Thu, 11 Jun 2009 20:23:35 GMT
pipeline function should have 0-parameter version

                 Key: CAMEL-1699
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Joe Gottman
             Fix For: 2.1.0

Currently the pipeline function takes an array of uri strings or Endpoints.  It should also
take 0 parameters to create a PipelineDefinition object that requires an end() to finish,
similar to multicast().  To see why this is necessary, consider the multicast example from
the wiki:

  <from uri="activemq:SomeQueue"/>
      <bean ref="something"/>
      <to uri="log:Something"/>
      <bean ref="foo"/>
      <bean ref="bar"/>
      <to uri="activemq:OutputQueue"/>

   Since the contents of the two pipelines are not just uri's there is no easy way to create
this route in Java.  If we had a pipeline() function, we could do it as follows:

     .end()  //pipeline
     .end() //pipeline
  .end() ;//multicast

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message