You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by prabhuj <pr...@gmail.com> on 2016/10/25 14:03:37 UTC

AsyncResponse not working with CXFRS + JAX-RS

I am using camel-cxfrs with a jaxrs resource class as below, 

    @Path("/")
    public interface TestResource {
        @POST
        @Produces("application/json")
        @Consumes("application/json")
        @Path("/capabilities")
        public void processCardCapabilityRequest(@Suspended final
AsyncResponse asyncResponse, final String request)
    }

    public interface TestResourceImpl implements TestResource {
        @Override
        public void processCardCapabilityRequest(@Suspended final
AsyncResponse asyncResponse, final String request)
        {
            return null;
        }
    }

    public class ConnectorRouteBuilder extends RouteBuilder {

        @Override
        public void configure() throws Exception {
           
from("cxfrs:bean:testRsServer?bindingStyle=SimpleConsumer&resourceClasses=com.a.b.c.TestResourceImpl").to(.....);
        }
    }

On sending a test request from test client, The server does not send
response back to client. Why is camel not calling asyncResponse.resume() ?




--
View this message in context: http://camel.465427.n5.nabble.com/AsyncResponse-not-working-with-CXFRS-JAX-RS-tp5789224.html
Sent from the Camel - Users mailing list archive at Nabble.com.