camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <>
Subject Re: OSGI Service look up
Date Tue, 18 Aug 2015 14:25:17 GMT
Are you using Spring or Blueprint in your Camel application? If yes, you
can use <reference /> elements to get a hold of the OSGi Service.

Otherwise, since you haven't indicated what 'ctx' is in your example, and
judging by your lookup notation, I will assume it is an InitialContext
plumbed against Aries JNDI.

In that case, there are several ways to achieve what you're after depending
on what you have in your Camel registry and how often you want to look up
the service (just once at initialization, with every Exchange, etc.).

If you specify your use case a little more, we'll be able to help you


*Raúl Kripalani*
Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
Integration specialist | | twitter: @raulvk

On Tue, Aug 11, 2015 at 4:54 PM, akoufoudakis <>

> Dear all!
> I know that one can lookup for an OSGi service the following way:
> Runnable r = (Runnable) ctx.lookup("osgi:service/java.lang.Runnable");
> Can you do anything similar inside your camel route?
> Thank you in advance.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message