1 Reply Latest reply on Apr 1, 2013 12:32 PM by tcunning

    How to set HTTP header in http-gateway (async)

    vedernik

        Hello all,

       

      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:

       

      https://community.jboss.org/message/621370

      (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>?

       

      Thank you.


        • 1. Re: How to set HTTP header in http-gateway (async)
          tcunning

          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?