I had the same needed and I have applied a workaround. I have 2 different camel contexts, the former is a spring camel context with all my camel routes, they use vm component as producer endpoint. The latter is the akka camel context that hosts my actors consumers endpoint that consume from vm components. It works good enough, but It is only a workaround.
On Wednesday, 12 February 2014 16:56:54 UTC+1, Thibaut Robert wrote: > > Hi, > > I'd like to use akka-camel with my own camel context rather than using the > private one defined in the CamelExtension (to reuse routes defined in > spring xml) > As discussed in this thread: > https://groups.google.com/d/topic/akka-user/ZvF6zQqrCvo/discussion, the > camel context is not injectable in the extension. > > I would be happy to propose a pull-request. However I need some help on > how to pass the context to the extension. At the moment I'm thinking at: > - adding a public useContext(ctx) method on the CamelExtension object, > making it mutable, not very clean. > - using a config option to define a classname, that will be dynamically > loaded to find the context: seems too complicated. > > Nothing really satisfying to me. Any other idea or guidance is welcomed :) > > Context: I have an existing application written with camel with many > routes defined using the spring dsl. > We are migrating part of this application to akka, replacing camel > processors with akka actors. > > Regards, > Thibaut > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
