On Thu, Mar 12, 2009 at 1:25 PM, Bruno Borges <bruno.bor...@gmail.com> wrote: > That's what I've been doing (with 1.6). Looks like I'm already doing the > only possible way. :-) > > Thanks! > > PS: I'm writting a Twitter component. What should I do later to contribute > it to the project? That is fantastic. See the contribution wiki page: http://camel.apache.org/contributing.html
> > 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 2:33 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > >> On Thu, Mar 12, 2009 at 6:25 AM, Bruno Borges <bruno.bor...@gmail.com> >> 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 <claus.ib...@gmail.com> >> wrote: >> > >> >> On Wed, Mar 11, 2009 at 9:18 PM, Bruno Borges <bruno.bor...@gmail.com> >> >> 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/ >> > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/