mirror of https://github.com/apache/activemq.git
Merge branch 'easy-fixes' of https://github.com/dkulp/activemq into trunk
This commit is contained in:
commit
5f9aca837a
|
@ -78,6 +78,10 @@
|
|||
<name>webconsole.type</name>
|
||||
<value>embedded</value>
|
||||
</systemProperty>
|
||||
<systemProperty>
|
||||
<name>activemq.data</name>
|
||||
<value>${project.build.directory}/activemq-data</value>
|
||||
</systemProperty>
|
||||
|
||||
<!--
|
||||
Use the following configuration to connect to a remote broker using JMX
|
||||
|
|
|
@ -49,7 +49,7 @@ public class CopyMessage extends DestinationFacade implements Controller {
|
|||
log.warn("No queue named: " + getPhysicalDestinationName());
|
||||
}
|
||||
}
|
||||
return redirectToBrowseView();
|
||||
return redirectToDestinationView();
|
||||
}
|
||||
|
||||
public String getMessageId() {
|
||||
|
|
|
@ -48,7 +48,7 @@ public class DeleteMessage extends DestinationFacade implements Controller {
|
|||
log.warn("No queue named: " + getPhysicalDestinationName());
|
||||
}
|
||||
}
|
||||
return redirectToBrowseView();
|
||||
return redirectToDestinationView();
|
||||
}
|
||||
|
||||
public String getMessageId() {
|
||||
|
|
|
@ -49,7 +49,7 @@ public class MoveMessage extends DestinationFacade implements Controller {
|
|||
log.warn("No queue named: " + getPhysicalDestinationName());
|
||||
}
|
||||
}
|
||||
return redirectToBrowseView();
|
||||
return redirectToDestinationView();
|
||||
}
|
||||
|
||||
public String getMessageId() {
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
|
||||
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
|
||||
|
||||
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
|
||||
|
||||
<broker brokerName="web-console" useJmx="true" xmlns="http://activemq.apache.org/schema/core">
|
||||
|
||||
|
|
|
@ -133,10 +133,10 @@ No message could be found for ID <c:out value="${requestContext.messageQuery.id}
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2"><a href="deleteMessage.action?JMSDestination=<c:out value="${row.JMSDestination}" />&messageId=${row.JMSMessageID}&secret=<c:out value='${sessionScope["secret"]}'/>">Delete</a></td>
|
||||
<td colspan="2"><a href="deleteMessage.action?JMSDestination=<c:out value="${requestContext.messageQuery.JMSDestination}" />&messageId=${row.JMSMessageID}&secret=<c:out value='${sessionScope["secret"]}'/>">Delete</a></td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td><a href="javascript:confirmAction('queue', 'copyMessage.action?destination=%target%&JMSDestination=<c:out value="${row.JMSDestination}" />&messageId=${row.JMSMessageID}&JMSDestinationType=queue&secret=<c:out value='${sessionScope["secret"]}'/>')">Copy</a></td>
|
||||
<td><a href="javascript:confirmAction('queue', 'copyMessage.action?destination=%target%&JMSDestination=<c:out value="${requestContext.messageQuery.JMSDestination}" />&messageId=${row.JMSMessageID}&JMSDestinationType=queue&secret=<c:out value='${sessionScope["secret"]}'/>')">Copy</a></td>
|
||||
<td rowspan="2">
|
||||
<select id="queue">
|
||||
<option value=""> -- Please select --</option>
|
||||
|
@ -150,7 +150,7 @@ No message could be found for ID <c:out value="${requestContext.messageQuery.id}
|
|||
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td><a href="javascript:confirmAction('queue', 'moveMessage.action?destination=%target%&JMSDestination=<c:out value="${row.JMSDestination}" />&messageId=${row.JMSMessageID}&JMSDestinationType=queue&secret=<c:out value='${sessionScope["secret"]}'/>')">Move</a></td>
|
||||
<td><a href="javascript:confirmAction('queue', 'moveMessage.action?destination=%target%&JMSDestination=<c:out value="${requestContext.messageQuery.JMSDestination}" />&messageId=${row.JMSMessageID}&JMSDestinationType=queue&secret=<c:out value='${sessionScope["secret"]}'/>')">Move</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -128,6 +128,10 @@ public class DestinationFacade {
|
|||
return new ModelAndView("redirect:" + (isQueue() ? "queues.jsp" : "topics.jsp"));
|
||||
}
|
||||
|
||||
protected ModelAndView redirectToDestinationView() {
|
||||
return new ModelAndView("redirect:browse.jsp?JMSDestination=" + jmsDestination);
|
||||
}
|
||||
|
||||
protected String getPhysicalDestinationName() {
|
||||
return createDestination().getPhysicalName();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue