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:
Bosanac Dejan 2008-09-30 10:27:07 +00:00
parent 74c27e70be
commit a3eb327703
1 changed files with 6 additions and 1 deletions

View File

@ -19,6 +19,7 @@ package org.apache.activemq.web;
import javax.servlet.http.HttpServletRequest;
import org.apache.activemq.broker.jmx.BrokerViewMBean;
import org.apache.activemq.broker.jmx.QueueViewMBean;
import org.apache.activemq.command.ActiveMQDestination;
import org.springframework.web.servlet.ModelAndView;
@ -109,10 +110,14 @@ public class DestinationFacade {
}
return jmsDestination;
}
protected QueueViewMBean getQueueView() throws Exception {
String name = getPhysicalDestinationName();
return getBrokerFacade().getQueue(name);
}
protected ModelAndView redirectToRequest(HttpServletRequest request) {
String view = "redirect:" + request.getRequestURI();
// System.out.println("Redirecting to: " + view);
return new ModelAndView(view);
}