Hi Yeah the addService(typeConverter) should be moved to the doStartCamel method, where we do this for others services.
Then we can remove that logic from createTypeConverter. Fell free to log a JIRA and provide a patch. On Thu, Apr 25, 2013 at 3:46 PM, lleclerc <llecl...@aim-rg.com> wrote: > I have picked the code from OsgiCamelContextHelper to set the osgi parts, but > this helper do not apply for TypeConverter. > > Here is the code for OsgiDefaultCamelContext : > > > It override the createTypeConverter() and addService is done while using a > getter from DefaultCamelContext (see my first post). > > It is not a bug, I could go by creating a CamelContext which is GuiceOsgi. > It's just that it would be cleaner to have a safe way to set the existing > parts instead of redefining the camelContext, but it will do the job. > > Please let me know if it worth a change in DefaultCamelContext. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Bug-in-DefaultCamelContext-with-TypeConverter-tp5731480p5731546.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen