[
https://issues.apache.org/jira/browse/CAMEL-1361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-1361.
--------------------------------
Resolution: Fixed
Fix Version/s: (was: Future)
2.8.0
Assignee: Claus Ibsen
Using beans for EIPs which support sub-routes is not a good idea. As its hard
to specify when the sub-route ends. We had a similar issue with the @Filter. So
closing this ticket.
> Idea - Splitter EIP as a @Split annotation
> ------------------------------------------
>
> Key: CAMEL-1361
> URL: https://issues.apache.org/jira/browse/CAMEL-1361
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
>
> Do we need a @Split annotation so we can use POJO routing with the Splitter
> EIP
> {code}
> @Split
> public List splitByWords(String payload) {
> // do reg exp to split string in words
> }
> {code}
> And we can route it as
> {code}
> from("file://inbox").beanRef(MySplitBean.class).to("seda:word");
> {code}
> Maybe its a bit overkill, but James like to create annotations :)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira