-
1. Re: cxfbc:consumer and camel routes
socallag Sep 8, 2009 6:10 AM (in response to speleomaniaque)Hi,
The uri's in your routes are incorrect, they need to be prepended with a protocol.
A CXF endpoint is of the form: cxf:bean:cxfEndpoint[?options]
See the following for more details and an example.
http://camel.apache.org/cxf.html
http://camel.apache.org/cxf-example.html
Regards,
Seán.
-
2. Re: cxfbc:consumer and camel routes
speleomaniaque Sep 8, 2009 8:25 AM (in response to socallag)Hi,
unfortunately that didn't helped, I am getting the same Exception....
What I see in this sample, cxf and router definitions are in the same file but I build my example project based on osgi bundle and there 3 bundles and cxf:consumer and camel router are in a separate file.
Is this a problem for this scenario, I try to export the package from router osgi bundle but there is no java code so how can I export a route from osgi bundle, that I don't know....
-
3. Re: cxfbc:consumer and camel routes
lyfe Nov 27, 2009 3:59 PM (in response to speleomaniaque)did you ever resolve this issue..i'm getting same error.
-
4. Re: cxfbc:consumer and camel routes
speleomaniaque Nov 28, 2009 5:53 AM (in response to lyfe)No,
unfortunately it is not possible to do this scenario with camel and 3 bundles....
Camel routes has to be in the same bundle as consumer and provider....
Now I realized this scenario with EIP...
-
5. Re: cxfbc:consumer and camel routes
rlg673 Nov 28, 2009 7:28 AM (in response to speleomaniaque)Hi,
You should be able to use camel-nmr endpoints at the beginning and end of your camel route to accomplish your objective using three separate bundles.
/Ron
-
6. Re: cxfbc:consumer and camel routes
lyfe Nov 30, 2009 10:46 AM (in response to rlg673)I have the following cxfbc consumer and cxfbc producer:
<cxfbc:consumer wsdl="mycalculate.wsdl"
service="calculate:CalculateService"
endpoint="soap"
targetService="calculate:CalculateService"
targetEndpoint="calculate:Calculate"
locationURI="http://myserver:8000/Calculate"/>
<cxfbc:producer wsdl="mycalculate.wsdl"
service="calculate:CalculateService"
endpoint="calculate:Calculate"
locationURI="http://myserver:8080/services/Calculate"/>
Currently, I have the following flow:
external client --> cxf consumer --> cxf producer --> external service
How would I introduce routing btwn the consumer and producer that would result in the following flow:
external client --> cxf consumer --> routing --> cxf producer --> external client
-
7. Re: cxfbc:consumer and camel routes
sergeyb_deleteusersergeyb Nov 30, 2009 11:40 AM (in response to lyfe)cxfbc:consumer typically delegates to a cxfse endpoint.
Most likely you'll need to introduce an eip wiretap which cxfbc:consumer will delegate to. Wiretap's inListener will in turn delegate to a cfxbc:provider.
If you don't want to introduce a cxfse endpoint then most likely you'll need to ensure you have an in-only cxfbc:consumer and then use an eip static receipient list instead to delegate to cxfbc provider
-
8. Re: cxfbc:consumer and camel routes
lyfe Nov 30, 2009 12:22 PM (in response to sergeyb_deleteusersergeyb)Hmm..I think that won't accomplish what I'm trying to do.
I would like to accomplish the aggregation pattern and return results. With the InOnly mep, I won't be able to return the responses.
How could I implement passing an external web service call to multiple external web service providers and return the responses?
-
9. Re: cxfbc:consumer and camel routes
speleomaniaque Dec 1, 2009 11:17 AM (in response to speleomaniaque)First of all my first I said it is not possible to that with multiple osgi bundles, so consumer bundle, camel bundle, xslt bundle, producer bundle, etc...
My tests to consolidate the solution this way didn't functioned but if you pack everything to one bundle there is no problem...
Aggregation pattern should solve your problem......