public void configure() throws Exception {
// Set the operation from Camel DSL
org.apache.camel.Endpoint endpoint = getContext().getEndpoint(toUri);
if (endpoint instanceof JbiEndpoint) {
JbiEndpoint jbiEndpoint = (JbiEndpoint) endpoint;
jbiEndpoint.setOperation("{http://test}echo");
}
from("jbi:name:cheese").to(toUri);
}