On Thu, Mar 12, 2009 at 6:25 AM, Bruno Borges <[email protected]> wrote:
> Yes, but the second endpoint doesn't get the message correctly as the file
> has already been pulled out.
Are you using Camel 1.x? The file component has been totally rewritten in 2.0.

You can then send to an intermediate endpoint and then multicast from it

from(file).to(seda:foo);
from(seda:foo).multicast().to(a, b, c);

You can use the .convertBodyTo(String.class) if you want to load the
file content and store that as payload instead of a java.io.File
handle
from(file).convertBodyTo(String.class).to(seda:foo);




>
>
>
> Bruno Borges
> blog.brunoborges.com.br
> +55 21 76727099
>
> "The glory of great men should always be
> measured by the means they have used to
> acquire it."
> - Francois de La Rochefoucauld
>
>
> On Thu, Mar 12, 2009 at 1:31 AM, Claus Ibsen <[email protected]> wrote:
>
>> On Wed, Mar 11, 2009 at 9:18 PM, Bruno Borges <[email protected]>
>> wrote:
>> > What is the best option to do a multicasting from a file polling
>> endpoint?
>> Do you care to explain a bit more in details what you excacty mean?
>>
>> Using this will send the same message to a,b and c simultaneously:
>> from(file).multicast().to(a, b, c);
>>
>>
>> >
>> >
>> >
>> > Bruno Borges
>> > blog.brunoborges.com.br
>> > +55 21 76727099
>> >
>> > "The glory of great men should always be
>> > measured by the means they have used to
>> > acquire it."
>> > - Francois de La Rochefoucauld
>> > Sent from: Rio de janeiro Rj Brazil.
>> >
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Reply via email to