cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Alex <>
Subject cxf:rsServer handle different methods into serviceClass
Date Mon, 06 Mar 2017 14:25:41 GMT
Hello , 
  I have another question if is possible please . 

If I had cxf:rsServer register like this 

<cxf:rsServer id="rsServer" address="/rest/" 
    loggingFeatureEnabled="true" loggingSizeLimit="99999">
       <ref bean="jsonProvider"/>
<bean id="serviceHandler" class="com.xxxx.service.RestHandler">

And in the I had two methods like this : 

public void request1(InboundModel inboundModel) 

public void request2(InboundModel inboundModel) 

How can I process the two methods in the route , based on the request ? 

 <camelContext id="camel" xmlns="">
       <from uri="cxfrs://bean://rsServer"/>
       <to uri="bean:serviceHandler?method=processRequest1"/>  <-- for
process  post https://localhost/rest/request1 -- > 

       <to uri="bean:serviceHandler?method=processRequest2"/>
<-- for process  post https://localhost/rest/request2 -- > 
       <to uri="log:body?level=INFO"/>  

Any hints or help is really appreciated 

Many thanks in advance , 

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message