Hi Bonnahu Could you tell what is the purpose of doing the same? I feel it will become difficult to handle files in the camel exchange Body if u want it that way. Else you should add it into the exchange attachments. But, the attachments might be lost since all components don't support attachments.
Alternatively you can zip up all files and transfer that zip file in the routes.Use camel zip dataformat for doing that. Cheers Reji On Fri, Oct 18, 2013 at 8:48 AM, bonnahu [via Camel] < [email protected]> wrote: > Hi all, I have two routes here which are connected by using direct. > Currently, when reading one file from file:src/test/resources/orders, it > will go to processRoute. However, what I want to do is to read all the > files > in the file:src/test/resources/orders first, then go to the route > processRoute. Is there a way to do it? thanks! > > <route id="readFilesRoute" autoStartup="true" startupOrder="200"> > <from > uri="file:src/test/resources/orders?noop=true&initialDelay=0"/> > ..... > <to uri="direct:precessOrders"/> > </route> > > <route id="processRoute" startupOrder="100"> > <from uri="direct:precessOrders"/> > <to uri="precessOrdersProcessor"/> > </route> > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://camel.465427.n5.nabble.com/Connecting-two-routes-using-direct-tp5741850.html > To unsubscribe from Camel - Users, click > here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=Y29udGFjdHJlamlAZ21haWwuY29tfDQ2NTQyOHwxMDA0OTE4MjMz> > . > NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://camel.465427.n5.nabble.com/Connecting-two-routes-using-direct-tp5741850p5741855.html Sent from the Camel - Users mailing list archive at Nabble.com.
