I use HTTP gateway in asynchronous fashion.
<asyncResponse> returns empty HTTP 200 response and works well.
However I need to set additional http header in the response.
As of my understaning solution at the bottom of the discussion won't work:
(because ESB invokes service asynchronously, it cannot return a service response as part of it's synchronous HTTP response)
My question - how can I set custom http heder using <asyncResponse>?
I think you'd have to change org.jboss.soa.esb.listeners.gateway.http.HttpGatewayServlet in order to do it. I don't see anywhere in there where anything is mapped to the response headers.
If you think this is something the ESB should allow you to do through configuration - like configurable headers within the <asyncResponse/>, could you log a JIRA?