-
Bug
-
Resolution: Done
-
Minor
-
1.6.1.2-fuse
-
None
-
None
Normally if you run two different CXF consumers on the same port but under different contexts everything works alright, for example:
from("cxf:http://localhost:7070?test1?serviceClass=com.fusesource.ts.MyPojo") .to("log:POJO1"); from("cxf:http://localhost:7070?test2?serviceClass=com.fusesource.ts.MyPojo") .to("log:POJO2");
However if you accidentally have the same route twice or for some other reason have two routes that use the same port/context like the attached test case the behavior at runtime is a bit undefined. No exception is thrown but the consumer doesn't work properly either, i.e. you can't get a WSDL or invoke on the service successfully.
Ideally if you specify the same port/context in two different routes in the same Camel context you should get an exception at runtime.