Announcement Announcement Module
Collapse
No announcement yet.
What is the difference between http and httpinvoker protocol Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is the difference between http and httpinvoker protocol

    I was wondering the difference between http and httpinvoker protocol. I was not convinced of when should I use http protocol and when should I use httpinvoker protocol. Is one is more preferable than another in some condition? If not, then what's the meaning to provide both two protocol? Could you give me some advice? Thanks a lot.

  • #2
    HttpInvoker is a Spring specific remoting protocol which relies on serialization and works over HTTP. It is only suitable when you have Spring on both ends. The http support allows you send and recevied standard HTTP requests.

    Comment


    • #3
      You may have noticed that we just provided the HTTP endpoints in 1.0.2 whereas we had HttpInvoker since 1.0. The main reason is that HttpInvoker was fairly trivial to implement - simply passing the Message itself within the serialized RemoteInvocation object. However, the HTTP adapters also support any Serializable object - including the Message (if you have extractPayload=false). Therefore, I would suggest using the HTTP adapter. It is really intended to be a superset of the HttpInvoker endpoint... it also supports arbitrary payloads (String, byte[] array, etc). With 2.0, we will probably phase out the HttpInvoker adapter since the HTTP version should be sufficient.

      Hope that clarifies things a bit.

      Comment

      Working...
      X