From PVillacorta - Fix IE issue where 1 message is received multiple times.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@384166 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joseph Dennis O. Gapuz 2006-03-08 09:31:56 +00:00
parent 9430890dc7
commit bd04e351e7
1 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,7 @@ public class MessageListenerServlet extends MessageServletSupport {
else
{
response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-cache");
response.getWriter().print("<ajax-response></ajax-response>");
}
// System.err.println("==");
@ -270,6 +271,7 @@ public class MessageListenerServlet extends MessageServletSupport {
// prepare the responds
response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-cache");
StringWriter swriter = new StringWriter();
PrintWriter writer = new PrintWriter(swriter);