[jboss-dev-forums] [JBoss ESB Development] New message: "Re: Consistent handling of HTTP response header across HTTP comp"

andrzej sochal do-not-reply at jboss.com
Fri Feb 5 15:08:57 EST 2010


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




More information about the jboss-dev-forums mailing list