Since you're having consumers create services, you can have those services implement Processor, then use OSGI ServiceTracker to collect services and add them to a Collection to feed to MulticastProcessor. Use a DelegateProcessor in the route and feed it a new MulticastProcessor when the ServiceTracker updates the Collection of consumer services.
On Tue, Feb 15, 2011 at 4:51 PM, Roshan A. Punnoose <rpunno...@proteuseng.com> wrote: > Also, I realized that camel vm works almost the way I want, except that I > would like to broadcast the messages. Instead of a queue, where the first > consumer will pick up the message, and the next consumer picks up the next > message. I would like every message to go to every consumer. Is this possible? > > Roshan > ________________________________________ > From: Roshan A. Punnoose [rpunno...@proteuseng.com] > Sent: Tuesday, February 15, 2011 4:38 PM > To: users@camel.apache.org > Subject: RE: Camel Osgi Component > > Thanks! That looks really interesting, and I didn't realize I could send > "anything" with NMR. > > Is there a way to use NMR without having to set it up in the spring config > first? That was the issue I was having with my component as well, to be able > to inject the bundle context, I had to have it defined in the spring config. > Not sure if anyone has been able to do the same thing with NMR without > setting it up in the spring config first. (it looks like it is an OSGi > service, maybe it is possible to use it as a bean from the registry? I know > we can use osgi services in from the camel bean registry) > > Roshan > ________________________________________ > From: Richard Kettelerij [richardkettele...@gmail.com] > Sent: Tuesday, February 15, 2011 4:15 PM > To: users@camel.apache.org > Subject: Re: Camel Osgi Component > > Hi, > > I haven't used Camel with OSGi myself, but the NMR component > (http://camel.apache.org/nmr.html) is often recommended for inter-bundle > communication. The NMR lives under the ServiceMix project but is also > available as a separate distribution > (http://servicemix.apache.org/SMX4NMR/download.html). > > You might also be interested in this blog post: > http://trenaman.blogspot.com/2010/08/easy-useful-nmr-monsieur-nodet-vous.html > > Regards, > Richard > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Osgi-Component-tp3386193p3386671.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- > Follow this link to mark it as spam: > http://mailfilter.proteus-technologies.com/cgi-bin/learn-msg.cgi?id=C4D992836A.AFDF3 > > > > -- > Follow this link to mark it as spam: > http://mailfilter.proteus-technologies.com/cgi-bin/learn-msg.cgi?id=1CBF62836A.A2080 > > >