Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Yes, Hessian 2.0 is the one to use. The protocol specifies how a data structure is represented binary, the spec is simple.</p> <p>The Hessian web service builds on the Hessian protocol, it specifies a number of headers in the Hessian format to describe e.g. the request/response format in the Hessian protocol. It defines the content of the request, the method that should be called and so on. It is not strictly needed because nobody uses it. You can define this yourself by creating a "Request" class and a "Response" class that suits you best and serialize this using Hessian protocol.</p> <p>Hessian is an alternative for Java serialization, it is slower because not directly supported by the java VM, but it is much (!) faster than XML parsing. It can be used in a cross platform way, although you will have to tweak existing implementations to make them work together, the spec has changed here and there (e.g. length specs) so that implementations tend to differ. The flip side is that it is not Human readable, you always need a tool to convert the Hessian to text. </p> <p>I have used Hessian in a large corporate application where a Java rich client communicates with a back end in order to make the client JVM version independent of the server JVM version. And it worked like a charm.</p> <p>Have a look at the implementation <a href="http://developer.berlios.de/projects/hessian4j/" rel="noreferrer">Hessian4J</a>. It is open source so you can have complete control over it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload