-
1. Re: How to publish endpoint to the public for camel-cxf
njiang May 21, 2011 4:39 AM (in response to jyang)I'm not sure what's your meaning of publishing the endpoint to the public.
If you want to access the camel-cxf endpoint from other camel context, you just need to make sure the address of the camel-cxf consumer can be accessed from other box.
You can change the cxf endpoint address from
"http://localhost:8381/cxf/PersonService" to "http://0.0.0.0:8381/cxf/PersonService"
Jetty will listen to all the network interface port 8381 for you.
Willem
-
2. Re: How to publish endpoint to the public for camel-cxf
jyang May 21, 2011 3:47 PM (in response to njiang)Let me clarify it.
As I know, the camel-cxf endpoint is reachable in same camel-context bundle.
For an example,
I try to package camel-cxf and camel-context route in different bundle.
How to make the route starting from camel-cxf endpoint ?
Is it the camel-cxf endpoint reachable by other bundle route?
Actually I intend to use camel-cxf instead jbi cxfbc:consumer.
Thanks
-
3. Re: How to publish endpoint to the public for camel-cxf
njiang May 22, 2011 8:41 PM (in response to jyang)If you define the camel context in the spring configure file, Spring DM will load it when the bundle is staring. You can package the camel-cxf endpoint definition into other bundle, please make sure the camel context bundle imports the package rightly. Then the Spring DM will take care of rest of other things.
Willem