diff --git a/activemq-web/src/main/java/org/apache/activemq/web/MessageListenerServlet.java b/activemq-web/src/main/java/org/apache/activemq/web/MessageListenerServlet.java index 4bcf8523f7..4c8493e496 100644 --- a/activemq-web/src/main/java/org/apache/activemq/web/MessageListenerServlet.java +++ b/activemq-web/src/main/java/org/apache/activemq/web/MessageListenerServlet.java @@ -378,7 +378,7 @@ public class MessageListenerServlet extends MessageServletSupport { } protected Map getConsumerIdMap(HttpServletRequest request) { - HttpSession session = request.getSession(); + HttpSession session = request.getSession(true); Map map = (Map) session.getAttribute("mls.consumerIdMap"); if (map == null) { map = new HashMap();