Hi Eric

Yes, encryption, compression and signatures are not what we have in mind. We are thinking about the “any routing or context headers” part. Unfortunately we have no sample message, as we currently use Hessian without any header information we would need for CBR (so this is something new), but I have seen some “writeHeader”-Methods in the API, but had no time to investigate.

Of course this will be part of the Hessian message, but I don’t know if this will be easily accessible without haven to de-serialize the whole message.

According to the source code of Hessian, the above methods are as follows:

_*http://hessian.caucho.com/doc/asdoc/hessian/io/HessianOutput.html#writeHeader()*_
writeHeader () method
|public override function writeHeader(name:String):void|

Writes a header name. The header value must immediately follow.

||

H b16 b8 foo /value/ Parameters


        |name:String| — The header name.


_*http://hessian.caucho.com/doc/asdoc/hessian/io/Hessian2Input.html#readHeader()*_
readHeader () method
|public override function readHeader():String|

Reads a header, returning null if there are no headers.

      H b16 b8 value
Returns

        |String| — The header if available or null otherwise.


It seems like these "headers" are just Strings (i.e. not even key-value pairs - but you can ofcourse write them as key=value), but I am not sure whether they are commonly used and if so for what purposes

Also, according to the Hessian 2.0 grammar (http://wiki.caucho.com/Hessian_2.0_Grammar), the headers occur within the binary payload, and we can surely try to read them without reading the payload - but probably not through the Hessian classes, but via some low level access into the binary payload directly

call    ::= c x02 x00 header* method object* z
header  ::= H b1 b0 header-string object


I’m going to contact the caucho guys and ask them about the usage of their message envelope/header to store routing related information.

Cool, also keep us posted on any updates they provide, as I do not think we will get the replies back from their lists if any? Meanwhile Tharindu has started on implementing the basic support for binary Hessian messages - without opening up these messages

asankha

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to