Just to add my solution to my question.
I wanted to use camel-context to be able to enable me to split the camel
definition files into different modules.
I finally found the vm: component and it does exactly what I wanted to do,
ie direct communication between contexts without having for activemq
Importing the resource sounds like a good idea :-) I tried it but
unfortunately I get the following error:
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'import'. One of
'{http://www.osgi.org/xmlns/blueprint/v1.0.0:description,
Oh, you are using Blueprint.
Current Blueprint doesn't support to import the resource like the Spring does.
You may need to consider export the camel-conetxt as a service and import this
service in another blueprint.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog:
Aha :-) I tested in Spring and it works.
I think the service approach actually is what I'm looking for, since the
import seems to run the xml-file again, which means if I include it in
many files, camel will try to define the routes in the included files as
many times as it's included.
Where
Hi,
I think you can refer the below mentioned link for creating a service in one
blueprint and use the same service in other blueprint.
http://www.ibm.com/developerworks/xml/library/os-osgiblueprint/index.html
You have to use Service reference managers and Service managers for
If I have two routes in separate files that depend on each other I'll get the
following error message:
org.apache.camel.FailedToCreateRouteException: Failed to create route
TestWhiteBox: Route[[From[context:blackbox:testBlackBox]] - [Log[Called
b... because of Failed to resolve endpoint:
Hi,
How did you define the whitebox.xml?
You can using the import resource to include the camel context that you want to
use just like this.
import resource=classpath:META-INF/camel-routes.xml/
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com