You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by tkatva <tu...@gmail.com> on 2011/10/29 21:47:59 UTC

Adding processing per Consumer endpoint

Hi

I was wondering is it possible to add Processor per consumer/target endpoint
? Let's say that I have ftp - producer/source endpoint and multiple targets,
then what I would like to do is process current file differently for each
endpoint. Is that possible or just for the whole route ? 

Also I am interested that is possible to change each endpoints filename ?
For example if I have several target/consumer FTP-endpoints and I would like
to name each endpoint filename differently... Is that possible ? 

Thank you 

Best Regards Tuomas

--
View this message in context: http://camel.465427.n5.nabble.com/Adding-processing-per-Consumer-endpoint-tp4949199p4949199.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Adding processing per Consumer endpoint

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Maybe see this article which covers and example with consumers which
can take XML or CSV data.
http://java.dzone.com/articles/open-source-integration-apache


On Tue, Nov 1, 2011 at 12:42 PM, tkatva <tu...@gmail.com> wrote:
> Hello
>
> Thank you for your answer. One thing that is troubling me is that can you
> add processing per target endpoint ?
>
> If for example consumer B wants to have it's data in XML-form and consumer C
> wants to have its data in CSV-form ? Is it possible to add processor per
> consumer endpoint ?
>
> Thank you
>
> Best Regards Tuomas Katva
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Adding-processing-per-Consumer-endpoint-tp4949199p4954957.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: Adding processing per Consumer endpoint

Posted by tkatva <tu...@gmail.com>.
Hello

Thank you for your answer. One thing that is troubling me is that can you
add processing per target endpoint ? 

If for example consumer B wants to have it's data in XML-form and consumer C
wants to have its data in CSV-form ? Is it possible to add processor per
consumer endpoint ?

Thank you 

Best Regards Tuomas Katva

--
View this message in context: http://camel.465427.n5.nabble.com/Adding-processing-per-Consumer-endpoint-tp4949199p4954957.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Adding processing per Consumer endpoint

Posted by Claus Ibsen <cl...@gmail.com>.
On Sat, Oct 29, 2011 at 9:47 PM, tkatva <tu...@gmail.com> wrote:
> Hi
>
> I was wondering is it possible to add Processor per consumer/target endpoint
> ? Let's say that I have ftp - producer/source endpoint and multiple targets,
> then what I would like to do is process current file differently for each
> endpoint. Is that possible or just for the whole route ?
>
> Also I am interested that is possible to change each endpoints filename ?
> For example if I have several target/consumer FTP-endpoints and I would like
> to name each endpoint filename differently... Is that possible ?
>

The file/ftp components will use the file name provided in the
CamelFileName header (if provided) over endpoint configuration.

Alternatively the recipient list EIP allows you to do "dynamic to" as
in this FAQ
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html


> Thank you
>
> Best Regards Tuomas
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Adding-processing-per-Consumer-endpoint-tp4949199p4949199.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/