I am using DefferedResult with ajaxrequest.In xml the messageconverter is configured as
This works for all ajax requests, except the one for which DefferedResult is used.In that case the response seems to be expected as as xml ,as I can see in firebug, and since I am returning a Map, it is giving xml parse error and the ajax response object is becoming null.<bean id="jacksonMessageConverter"
<ref bean="jacksonMessageConverter" />
Do I need to set the response content-type particularly for the cases where DeffereResult is used? Or how can I get the response as json instead of xml?I am using spring 3.2.0.RELEASE version for web and web-mvc and 3.1.1.RELEASE for other spring modules.