I have mutiple serviceBeans in cxf:rsServer component.
<cxf:rsServer id="rsServer" address="
http://localhost:8080/services/employees>
<cxf:serviceBeans>
<ref bean="aBean" />
<ref bean="bBean" />
</cxf:serviceBeans>
</cxf:rsServer>
<bean id="aBean" class="x.y.ClassA" />
<bean id="bBean" class="x.y.ClassB" />
Here ClassA and ClassB are implementation of service interfaces.
I have one route class for each service route.
for first service:
from("cxfrs://bean://rsServer?resourceClass=ClassA.getClass().getName()).to().end();
for second one"
from("cxfrs://bean://rsServer?resourceClass=ClassB.getClass().getName()).to().end();
When i hit second service and put debugger in both routes (route of first
service and second service), route of first service is being hit. Why is
that? How can i make sure that only corresponding route gets hit?