Just a quick answer for reusing the OSGi service.
Camel 2.x support to use the OSGi service name as the BeanComponent's
reference.
You can find the code here[1]
[1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-osgi/src/main/java/org/apache/camel/osgi/OsgiServiceRegistry.java
Charles, Peter,
Given that you can also create a CamelContext from within a simple
main() method and run routes that way, it should be possible to build
a solution that does not require spring-dm. I think we should be able
to build a simple Activator that is capable of tracking all
RoutesBuilder
Hi Peter,
Interesting design that you propose here.
> - How do I create the camel content and export it to be picked up by the
> routing bundle. Is this done automatically?
The camel-spring-osgi component allow to automatically register the
camelContext and made it available for other bunldes.
Hi Peter,
Interesting design that you propose here.
> - How do I create the camel content and export it to be picked up by the
> routing bundle. Is this done automatically?
The camel-spring-osgi component allow to automatically register the
camelContext and made it available for other bunldes.
Hello Charles,
I should have been more specific. Yes, I meant without Spring DM. What I
am attempting is to create a system that has X number of services
registered, but not all services are running at all times, if a service is
down, the routes that direct messages to it must also be brought
Hi Peter,
Can you precise what you understand by 'without spring' ? without
spring configuration file, without Spring DM services, ...
Camel routes can be defined using Java DSL language and deployed as a
bundle top of Apache Felix Karaf. There is an example here :
https://svn.apache.org/repos/as
Hello all,
I was wondering if anyone has some tips or an example of using Camel and
OSGi without using Spring. Our project uses Apache Felix (Karaf actually)
on an embedded device, as such the size and performance of Spring is
unattractive.
We have created various services using iPOJO and are