Sergey -

Thank you for the quick response.

The injection of the HttpServletResponse and using its addHeader(...) method
worked perfectly.

Here's my updated code snippet:

 @javax.annotation.Resource 
  private javax.servlet.http.HttpServletResponse servletResponse;

Response.ResponseBuilder responseBuilder = Response.ok( queryResults );

for ( String siteName : jsonProcessor.getStatusReportList().keySet() ) {
        String exceptionMessage = (String) 
jsonProcessor.getStatusReportList().get(
siteName );
                                       
        //responseBuilder.header( "Warning", siteName + ": failed to execute 
query
due to this exception: " + exceptionMessage );
        servletResponse.addHeader( "Warning", siteName + ": failed to execute 
query
due to this exception: " + exceptionMessage );
}

response = responseBuilder.build();

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Same-HTTP-header-in-JAXRS-response-multiple-times-tp4556926p4557404.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to