when calling two string parameters method of ejb using ejb component of
camel , the method is called but when I am trying to fetch parameters
inside ejb bean method parameter's value is not fetched instead type of
parameter(string class)is fetched and second parameter is nullified.
Bean method:
public String sayHelloParam(String s1,String s2) {
// TODO Auto-generated method stub
System.out.println("remoteinterface methods sayhello with 2
string
param..."+s1.toString()+"..."+s2);
return "sayHello from Converter with 2 string param...";
}
output:remoteinterface methods sayhello with 2 string
param...[Ljava.lang.String;@13d172cd...null
Client side code:
final String[] paramArray=new String[2];
paramArray[0]="s";
paramArray[1]="s2";
exchange = producer.request(FrameworksStartup.getInstance().getUriMap()
.get(camelID), new Processor() {
public void process(Exchange exchange) throws Exception
{
if(paramArray!=null)
{
exchange.getIn().setBody(paramArray);
}
}
});
--
View this message in context:
http://camel.465427.n5.nabble.com/when-calling-two-string-parameters-method-of-ejb-using-ejb-component-of-camel-the-method-is-called-b-tp5732622p5732646.html
Sent from the Camel - Users mailing list archive at Nabble.com.