Camel cxf with multiple querystring sets all parameters to null except first.

Solution Verified - Updated -

Issue

    <cxf:rsServer  id="CxfEndpoint" address="/cxfendpoint"  serviceClass="xxx.xxx.test">
        <cxf:providers>
            <bean id="jsonProvider" class="xxx.xxx.JacksonConfig" factory-method="getProvider" />
        </cxf:providers>
    </cxf:rsServer>

    <camelContext id="httpGatewayContext" xmlns="http://camel.apache.org/schema/blueprint" >

        <route id="startMngRoute">
            <from uri="cxfrs:bean:CxfEndpoint" />
            <log message="${in.body}" />
            <setHeader headerName="CamelBeanMethodName">
                <simple>${header.operationName}</simple>
            </setHeader>
            <to uri="bean:serviceBean"/>
        </route>
    </camelContext>
  • Query-parameters are declared following way.
@GET
    @Path("/enterprise")
    @Produces(MediaType.APPLICATION_JSON)
    public Response retriveEnterprise(@QueryParam("transactionId") String transactionId, @QueryParam("enterpriseAlias") String enterpriseAlias)
            throws DaoException { ... }
  • The enterpriseAlias variable is always NULL. It seems that the binding doesn't work properly.

Environment

  • Red Hat JBoss Fuse
    • 6.1.0
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.