[switchyard-issues] [JBoss JIRA] Created: (SWITCHYARD-310) Camel input gateways should be configurable using Java implementation too

Jiri Pechanec (JIRA) jira-events at lists.jboss.org
Wed Jun 22 11:10:23 EDT 2011


Camel input gateways should be configurable using Java implementation too
-------------------------------------------------------------------------

                 Key: SWITCHYARD-310
                 URL: https://issues.jboss.org/browse/SWITCHYARD-310
             Project: SwitchYard
          Issue Type: Feature Request
          Components: component-camel
    Affects Versions: 0.1
         Environment: JBoss AS 7
            Reporter: Jiri Pechanec


Use case
I have a big CSV file that I want to efficiently process. To do this I need
1) Camel file service endpoint
2) Stream the file
3) Split the file by lines
4) Enable parallel processing

It can be express in Java using this configuration
		from("file:...")
		.log("Message received in ParallelSplitter")
		.log("${body}")
		.split(body(String.class).tokenize("\n"))
		.streaming()
		.parallelProcessing()
		.unmarshal()
		.csv()
		.to("switchyard://TestService?operationName=longOperation");

Unfortunately Camel inbound gateway supports only setting URI. And if I use Camel service with RouteBuilder then it is mandatory for me to set from to switchyard://... endpoint.

So it would be great to enable configuring camel bindings using Java or Spring DSLs


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the switchyard-issues mailing list