Hi Sergey,
Camel already exposes context as an OSGi service. So it means that you
can get the endpoint, routes, component starting from the CamelContext.
For instance, you can get the CamelContext from a bundle like this:
ServiceReference[] references =
bundleContext.getServiceReferences(CamelContext.class.getName(), null);
Regards
JB
On 06/22/2011 05:11 PM, Zhemzhitsky Sergey wrote:
Hi there,
I'm using the latest version of camel and I'm wondering whether it is possible
to export a camel endpoint as OSGi service, so any non-camel-aware code can
transparently use camel functionality in OSGi environment. And in that case
from the OSGi service consumer's point of view, camel context is a simple OSGi
service.
Best Regards,
Sergey Zhemzhitsky
_______________________________________________________
The information contained in this message may be privileged and conf idential
and protected from disclosure. If you are not the original intended recipient,
you are hereby notified that any review, retransmission, dissemination, or
other use of, or taking of any action in reliance upon, this information is
prohibited. If you have received this communication in error, please notify the
sender immediately by replying to this message and delete it from your
computer. Thank you for your cooperation. Troika Dialog, Russia.
If you need assistance please contact our Contact Center (+7495) 258 0500 or
go to www.troika.ru/eng/Contacts/system.wbp