thank you for the response.
But I don't need to implement from scratch a new REST service.
I already have it exposed somewhere in the web and just want to expose it trough the the ESB....
You want to proxy it? Then you can use a generic http service to proxy it.
With Camel you can do a simple route to proxy it:
There is also a Camel CXF proxy example which may inspire you
thank you for your suggestion.
I'm trying to do what you suggested but...
I'm using apache-servicemix-4.3.0-fuse-03-00
starting from camel-osgi-example from camel distribution I've configured the camelContext.xml as described at the end of this post. I added the dependency to camel-jetty 2.5.0 in the pom.xml. I built everything (mvn clean/compile/install)
The osgi bundle is correctly installed (without error in the servicemix log ):
but when I start it I've this error
Error executing command: The bundle "org.apache.camel.camel-example-osgi_2.4.0 [
395]" could not be resolved. Reason: Missing Constraint: Import-Package: org.apa
Is the camelContext below correct to proxy the http call?
Thanks in advance.
You need to use features to install those Camel components
If you do a features:list you should see all the Camel components. Then install the camel-jetty feature
And also camel-cxf feature as well (if not already installed)
Yeah, this is a version issue, as FUSE ESB 4.3.0-fuse-03-00 use camel 2.4.0-fuse-02-00,
so you just need specify camel version as 2.4.0-fuse-02-00 in your example pom.xml
It could be better if you just have one version of camel-*. As there could have some difference between the camel-core 2.4.0-fuse-02-00 and camel-core 2.4.0-fuse-03-00.
Thanks a lot to all,
I tried in many ways to getting it to work.
But I'm unable to run it in fuse esb
I tried to modify the version, but in this way I've compile error even if I've the package in my local mvn repository and this means I cannot produce the final jar to be deployed in the ESB.
I'm a bit frustrated as this is just the start point of my project and I'm encountering lot of problem
You should use the versions which is shipped with Fuse ESB as its been tested together to ensure they work together.
It works now.
Thanks to all.