Re: camel-context only seems to work within the same file or do I use it wrong?

2013-10-25 Thread dantam74
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

Re: camel-context only seems to work within the same file or do I use it wrong?

2013-09-02 Thread dantam74
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,

Re: camel-context only seems to work within the same file or do I use it wrong?

2013-09-02 Thread Willem jiang
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:

Re: camel-context only seems to work within the same file or do I use it wrong?

2013-09-02 Thread dantam74
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

Re: camel-context only seems to work within the same file or do I use it wrong?

2013-09-02 Thread pradeep
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

camel-context only seems to work within the same file or do I use it wrong?

2013-09-01 Thread dantam74
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:

Re: camel-context only seems to work within the same file or do I use it wrong?

2013-09-01 Thread Willem jiang
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