For some reason, the second and the subsequent Query Parameters are just null. The first one works perfectly fine. I am using Camel+JAX-RS (CXF). This is just a GET request. The URL I am using is
http://localhost:8181/cxf/coreservices/search?q=health&start=100&size=924
Here is my Interface declaration
@Path("search") public interface SearchRestService {
@GET
@Produces(MediaType.APPLICATION_JSON)
public String searchGet(@QueryParam ("q") String q, @DefaultValue("0") @QueryParam("start") String start, @DefaultValue("10") @QueryParam("size") String size );
Implementation
public SearchResult<WikiSearchHit> searchGet(String q, String start, String size){
logger.info("Inside wiki GET method: " +q + " start:"+start + " size:"+ size);
The q
parameter comes in fine as health
but the start and the size parameters are just null. Surprisingly, the default values aren't getting picked up too.
I am afraid I am doing something wrong in my camel routing.
Router
@Override
public void configure() throws Exception {
from("cxfrs://bean://rsServer?bindingStyle=SimpleConsumer")
.multicast()
.parallelProcessing()
.aggregationStrategy(new CoreSearchResponseAggregator())
.beanRef("searchRestServiceImpl", "searchGet")
...
Thanks for your time :-)