Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
Future
-
None
-
None
-
Unknown
Description
One purpose of the CamelInvocationHandler (& Friends) is to translate a java.lang.reflect.Method to an Exchange in order to eventually have the registered Producer process that Exchange. Currently the name of the method gets lost when the Exchange is prepared.
It would be helpful if the Exchange contained the method name (as a String), e.g. as an appropiate header. In that case it would be possible to write a new Camel Component "jsonrpc". according to Camel's design concept, because the jsonrpc protocol requires the name of the method in the request message.
My suggestion is to attach the method name to the Exchange in method
protected Object invokeProxy(final Method method, final ExchangePattern pattern, Object[] args, boolean binding)