I use Camel Proxy to open the interface as a starting point for the route. It uses the BeanInvocation object as the body of the message. How to set message body and headers based on arguments passed to interface?
public interface test{
public void sayHi(String firstName, String lastName);
}
I would like to create a body (firstName + "" + lastName). I would also like to know how to set one argument as the message header and the other as the body.
source
share