On Thursday, February 13, 2014 11:47:05 AM UTC+1, Raymond Roestenburg wrote: > > > > > On Thu, Feb 13, 2014 at 11:03 AM, Thibaut Robert > <[email protected]<javascript:> > > wrote: > >> >> >> On Wednesday, February 12, 2014 6:58:53 PM UTC+1, Thibaut Robert wrote: >>> >>> >>> >>> On Wednesday, February 12, 2014 5:57:35 PM UTC+1, Raymond Roestenburg >>> wrote: >>>> >>>> >>>> On Wed, Feb 12, 2014 at 5:08 PM, √iktor Ҡlang <[email protected]>wrote: >>>> >>>>> >>>>> >>>>> >>>>> On Wed, Feb 12, 2014 at 4:56 PM, Thibaut Robert >>>>> <[email protected]>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.* >>>>>> >>>>> >>>>> I'd go for that, it is how everything else works in Akka. >>>>> >>>> >>>> +1 >>>> Strange that setting the Registry on the CamelContext does not work, >>>> have you verified this yourself that it does not work? >>>> >>> >>> Setting the registry is not enough. It does not allow to define routes >>> in xml, unless I missed something. >>> I'll have a deeper look tomorrow, maybe we can take the route definition >>> from spring (inside a routeContext tag) and apply them to the akka camel >>> context. >>> >> I looked at this. This seems to me to be a wrong approach. xml-defined >> routes are supposed to be used with an xml-defined context. >> So I give a try to allow context injection in akka. >> > > Cool, looking forward to it. >
Hi. Just sent a PR ! > > >> >> >> >>> >>>>> >>>>>> >>>>>> 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. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Cheers, >>>>> √ >>>>> >>>>> * ——————— **Viktor Klang* >>>>> *Chief Architect - **Typesafe <http://www.typesafe.com/>* >>>>> >>>>> Twitter: @viktorklang >>>>> >>>>> -- >>>>> >>>>>>>>>> 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. >>>>> >>>> >>>> >>>> >>>> -- >>>> Raymond Roestenburg >>>> >>>> code: http://github.com/RayRoestenburg >>>> blog: http://roestenburg.agilesquad.com >>>> twtr: @RayRoestenburg >>>> book: http://manning.com/roestenburg >>>> >>> -- >> >>>>>>>>>> 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] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/akka-user. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Raymond Roestenburg > > code: http://github.com/RayRoestenburg > blog: http://roestenburg.agilesquad.com > twtr: @RayRoestenburg > book: http://manning.com/roestenburg > -- >>>>>>>>>> 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.
