mirror of https://github.com/apache/activemq.git
patch for AMQ-1326 applied (with a few more code improvements)
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@700406 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
74c27e70be
commit
a3eb327703
|
@ -19,6 +19,7 @@ package org.apache.activemq.web;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
import org.apache.activemq.broker.jmx.BrokerViewMBean;
|
import org.apache.activemq.broker.jmx.BrokerViewMBean;
|
||||||
|
import org.apache.activemq.broker.jmx.QueueViewMBean;
|
||||||
import org.apache.activemq.command.ActiveMQDestination;
|
import org.apache.activemq.command.ActiveMQDestination;
|
||||||
import org.springframework.web.servlet.ModelAndView;
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
@ -110,9 +111,13 @@ public class DestinationFacade {
|
||||||
return jmsDestination;
|
return jmsDestination;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected QueueViewMBean getQueueView() throws Exception {
|
||||||
|
String name = getPhysicalDestinationName();
|
||||||
|
return getBrokerFacade().getQueue(name);
|
||||||
|
}
|
||||||
|
|
||||||
protected ModelAndView redirectToRequest(HttpServletRequest request) {
|
protected ModelAndView redirectToRequest(HttpServletRequest request) {
|
||||||
String view = "redirect:" + request.getRequestURI();
|
String view = "redirect:" + request.getRequestURI();
|
||||||
// System.out.println("Redirecting to: " + view);
|
|
||||||
return new ModelAndView(view);
|
return new ModelAndView(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue