JBoss development,
A new message was posted in the thread "Consistent handling of HTTP response header
across HTTP comp":
http://community.jboss.org/message/524478#524478
Author : andrzej sochal
Profile :
http://community.jboss.org/people/anso2
Message:
--------------------------------------------------------------
A note on the JBR Gateway.I ran into a problem where my Content-Type ResponseHeader, which
I set in the message properties to "text/xml", was not reflected in the final
HTTP response. I found that the problem is in the JBoss Remoting transport layer. The
CoyoteInvoker overrides the content type in the versionedWrite method. This method is
using WebUtil class that makes decision about content type based on type of the
responseObject. If it is String it always returns "text/html" otherwise it uses
"application/octet-stream".
This is confusing because according to ESB spec you should be able to customize all the
response headers in your action classes by setting ResponseHeader instances in the
message properties.
--------------------------------------------------------------
To reply to this message visit the message page:
http://community.jboss.org/message/524478#524478