camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From takidean <>
Subject rest webservice can't read parameteres
Date Mon, 13 May 2013 13:45:47 GMT
i use to send many parameters in my url but i find that message body catch
only the first parameters

this is my code:


public String getCustomer(@QueryParam("id") String n,@QueryParam("type")
String s) {
    return "ok";

/** route ***/
 <camelContext xmlns="">
        <from uri="cxfrs://bean://cc"/>
        <convertBodyTo type="java.lang.String"/>
        <process ref="abc"/>
public class Abc implements Processor{

	public void process(Exchange exchange) throws Exception {
		// TODO Auto-generated method stub
		String m =(String) exchange.getIn().getBody();
		System.out.println("mssage ="+m);

when i send this url http://localhost:9090/cc/MessageResource/id?id=1&type=1
it only show me the id 1

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message