Hi
I've run into a problem trying to use the http invoker with remoting 2.0.0 GA. It seems that after invoke() returns, the value for the response header "Content-Type" is always being replaced with "text/html". I have been attempting to set it as follows:
public Object invoke(InvocationRequest req)
{
Map response = req.getReturnPayload();
response.put("Content-Type","text/css");
return someCSSasAString;
}
Nope, the remoting code currently checks the type of response and makes a best guess at the content type.
I have created a jira issue (http://jira.jboss.com/jira/browse/JBREM-653) to allow for exactly what you have posted above.