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 
> <viktor...@gmail.com<javascript:>
> > wrote:
>
>>
>>
>>
>> On Wed, Feb 12, 2014 at 4:56 PM, Thibaut Robert 
>> <thibaut...@gmail.com<javascript:>
>> > 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.
 

>  
>>
>>>
>>> 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 akka-user+...@googlegroups.com <javascript:>.
>>> To post to this group, send email to akka...@googlegroups.com<javascript:>
>>> .
>>> 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 akka-user+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com<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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to