For what it is worth, i've just noticed the incorrect return type on the
invoker. Obviously that's not the cause of the error.

@Override 
public List<ParameterGroup> requestParameterGroups() { 
    // testing service call 
    List<ParameterGroup> parameterGroups = new ArrayList<ParameterGroup>(); 
    parameterGroups = (List<ParameterGroup>)
requestParameterGroupsProducerTemplate.requestBody(null); 
    System.out.println("Received " + parameterGroups.size() + " parameter
groups."); 
    return parameterGroups; 
}

should be

@Override
        public Map<String, ParameterGroup> requestParameterGroups() {
                Map<String, ParameterGroup> parameterGroups = new 
HashMap<String,
ParameterGroup>();
                parameterGroups = (Map<String, ParameterGroup>)
requestParameterGroupsProducerTemplate.requestBody(null);
                System.out.println("Received " + parameterGroups.size() + " 
parameter
groups.");

                return parameterGroups;
        }

--
View this message in context: 
http://camel.465427.n5.nabble.com/MessageFormatException-using-requestBody-InOut-over-activemq-JMS-tp5554469p5554786.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to