You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by bdeweer <be...@gmail.com> on 2017/01/09 08:32:29 UTC
How to read file inside a route?
Hello,
I have a simple SOAP WS that takes a filename as entry (string) and a file
payload as output.
Inside the route I have to read the file to get the content.
How to make it with camel ?
Can I use the file compoment or do I need to use the java NIO api inside a
Camel processor ?
How to use the file component in this case ?
My route looks like this :
<route id="getPayload">
<from uri="cxf:bean:documentServiceEndpoint" />
<process ref="responseProcessor" />
</route>
Thank you
--
View this message in context: http://camel.465427.n5.nabble.com/How-to-read-file-inside-a-route-tp5792292.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to read file inside a route?
Posted by souciance <so...@gmail.com>.
You can use the file component to read the file and then do whatever you
want with the data.
On Mon, Jan 9, 2017 at 9:32 AM, bdeweer [via Camel] <
ml-node+s465427n5792292h15@n5.nabble.com> wrote:
> Hello,
>
> I have a simple SOAP WS that takes a filename as entry (string) and a file
> payload as output.
>
> Inside the route I have to read the file to get the content.
>
> How to make it with camel ?
>
> Can I use the file compoment or do I need to use the java NIO api inside a
> Camel processor ?
>
> How to use the file component in this case ?
>
> My route looks like this :
>
> <route id="getPayload">
> <from uri="cxf:bean:documentServiceEndpoint" />
>
> <process ref="responseProcessor" />
> </route>
>
> Thank you
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/How-to-read-file-inside-a-
> route-tp5792292.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h31@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> 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/How-to-read-file-inside-a-route-tp5792292p5792293.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to read file inside a route?
Posted by bdeweer <be...@gmail.com>.
Thank you for your reply.
Indeed, the poolEnrich with a custom strategy make it works.
--
View this message in context: http://camel.465427.n5.nabble.com/How-to-read-file-inside-a-route-tp5792292p5792302.html
Sent from the Camel - Users mailing list archive at Nabble.com.