I tested like the below...
I'd like you to give me some advice..
1. make two CAMEL-SAs to provide RESTful service using CXF-RS.
-Described below, the IP and ports of the addresses of these SAs are
exactly the same.
-the URLs are a bit different.
2. deploy these CAMEL-SA(service-assembly) to ServiceMix 3.4.0
- two SAs are all successfully deployed.
3. test result : The SA deployed earlier(call as 'A')works well, but one
deployed later(B) gives me "404 error".
- by the way, if A is undeployed, B get working well, and vice versa.
4. I need to use "two" SAs. How can I modify the code above to make both of
the two SA work well?
cf. Combining the two SAs into single SA gave me good result.
camel-sa1: camel-context.xml
<cxf:rsServer id="cbrServer"
address="http://localhost:8191/example/camel/cbr"
serviceClass="test.rest.service.CBRRestService"/>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="cxfrs://bean://cbrServer"/>
...
</route>
camel-sa2: camel-context.xml
<cxf:rsServer id="rsServer"
address="http://localhost:8191/example/camel/saxon"
serviceClass="test.rest.service.RestService"/>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="cxfrs://bean://rsServer"/>
...
</route>
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Isn-t-it-possible-to-use-two-Camel-SA-for-two-RESTful-Services-tp5713878.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.