You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Joe Gottman (JIRA)" <ji...@apache.org> on 2009/06/11 22:23:35 UTC
[jira] Created: (CAMEL-1699) pipeline function should have
0-parameter version
pipeline function should have 0-parameter version
-------------------------------------------------
Key: CAMEL-1699
URL: https://issues.apache.org/activemq/browse/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:
<route>
<from uri="activemq:SomeQueue"/>
<multicast>
<pipeline>
<bean ref="something"/>
<to uri="log:Something"/>
</pipeline>
<pipeline>
<bean ref="foo"/>
<bean ref="bar"/>
<to uri="activemq:OutputQueue"/>
</pipeline>
</multicast>
</route>
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:
from("activemq:SomeQueue")
.multicast()
pipeline()
.beanRef("something")
.to("log:Something")
.end() //pipeline
.pipeline()
.beanRef("foo")
.beanRef="bar"/>
.to("activemq:OutputQueue)
.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.
[jira] Resolved: (CAMEL-1699) pipeline function should have
0-parameter version
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1699.
--------------------------------
Resolution: Fixed
Thanks for reporting. I just added this feature.
trunk: 819847.
> pipeline function should have 0-parameter version
> -------------------------------------------------
>
> Key: CAMEL-1699
> URL: https://issues.apache.org/activemq/browse/CAMEL-1699
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Joe Gottman
> Assignee: Claus Ibsen
> 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:
> <route>
> <from uri="activemq:SomeQueue"/>
> <multicast>
> <pipeline>
> <bean ref="something"/>
> <to uri="log:Something"/>
> </pipeline>
> <pipeline>
> <bean ref="foo"/>
> <bean ref="bar"/>
> <to uri="activemq:OutputQueue"/>
> </pipeline>
> </multicast>
> </route>
> 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:
> from("activemq:SomeQueue")
> .multicast()
> pipeline()
> .beanRef("something")
> .to("log:Something")
> .end() //pipeline
> .pipeline()
> .beanRef("foo")
> .beanRef="bar"/>
> .to("activemq:OutputQueue)
> .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.
[jira] Assigned: (CAMEL-1699) pipeline function should have
0-parameter version
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-1699:
----------------------------------
Assignee: Claus Ibsen (was: Hadrian Zbarcea)
> pipeline function should have 0-parameter version
> -------------------------------------------------
>
> Key: CAMEL-1699
> URL: https://issues.apache.org/activemq/browse/CAMEL-1699
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Joe Gottman
> Assignee: Claus Ibsen
> 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:
> <route>
> <from uri="activemq:SomeQueue"/>
> <multicast>
> <pipeline>
> <bean ref="something"/>
> <to uri="log:Something"/>
> </pipeline>
> <pipeline>
> <bean ref="foo"/>
> <bean ref="bar"/>
> <to uri="activemq:OutputQueue"/>
> </pipeline>
> </multicast>
> </route>
> 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:
> from("activemq:SomeQueue")
> .multicast()
> pipeline()
> .beanRef("something")
> .to("log:Something")
> .end() //pipeline
> .pipeline()
> .beanRef("foo")
> .beanRef="bar"/>
> .to("activemq:OutputQueue)
> .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.
[jira] Commented: (CAMEL-1699) pipeline function should have
0-parameter version
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52217#action_52217 ]
Hadrian Zbarcea commented on CAMEL-1699:
----------------------------------------
Well spotted.
We appreciated contributions, would you like to take a stab at it?
> pipeline function should have 0-parameter version
> -------------------------------------------------
>
> Key: CAMEL-1699
> URL: https://issues.apache.org/activemq/browse/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:
> <route>
> <from uri="activemq:SomeQueue"/>
> <multicast>
> <pipeline>
> <bean ref="something"/>
> <to uri="log:Something"/>
> </pipeline>
> <pipeline>
> <bean ref="foo"/>
> <bean ref="bar"/>
> <to uri="activemq:OutputQueue"/>
> </pipeline>
> </multicast>
> </route>
> 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:
> from("activemq:SomeQueue")
> .multicast()
> pipeline()
> .beanRef("something")
> .to("log:Something")
> .end() //pipeline
> .pipeline()
> .beanRef("foo")
> .beanRef="bar"/>
> .to("activemq:OutputQueue)
> .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.
[jira] Assigned: (CAMEL-1699) pipeline function should have
0-parameter version
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hadrian Zbarcea reassigned CAMEL-1699:
--------------------------------------
Assignee: Hadrian Zbarcea
> pipeline function should have 0-parameter version
> -------------------------------------------------
>
> Key: CAMEL-1699
> URL: https://issues.apache.org/activemq/browse/CAMEL-1699
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Joe Gottman
> Assignee: Hadrian Zbarcea
> 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:
> <route>
> <from uri="activemq:SomeQueue"/>
> <multicast>
> <pipeline>
> <bean ref="something"/>
> <to uri="log:Something"/>
> </pipeline>
> <pipeline>
> <bean ref="foo"/>
> <bean ref="bar"/>
> <to uri="activemq:OutputQueue"/>
> </pipeline>
> </multicast>
> </route>
> 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:
> from("activemq:SomeQueue")
> .multicast()
> pipeline()
> .beanRef("something")
> .to("log:Something")
> .end() //pipeline
> .pipeline()
> .beanRef("foo")
> .beanRef="bar"/>
> .to("activemq:OutputQueue)
> .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.