Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17357

Make the AbstractInvocationHandler pass the method name to the exchange

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • Future
    • None
    • camel-bean
    • 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)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            japhno Olaf Heyder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: