|
|
ActiveMQ example source code file (subscribers.jsp)
This example ActiveMQ source code file (subscribers.jsp) is included in the DevDaily.com
"Java Source Code
Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.
The ActiveMQ subscribers.jsp source code
<%--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--%>
<html>
<head>
<title>Durable Topic Subscribers
</head>
<body>
<form action="createSubscriber.action" method="post">
<input type="hidden" name="JMSDestinationType" value="topic"/>
<input type="hidden" name="secret" value="
<table id="createSubscribers" class="sortable autostripe">
<thead>
<tr>
<th colspan="4">Create Durable Topic Subscribers
</tr>
</thead>
<tbody>
<tr>
<td class="label">
<label name="clientId">Client ID
</td>
<td>
<input type="text" name="clientId" value=""/>
</td>
<td class="label">
<label name="subscriberName">Subscriber Name
</td>
<td>
<input type="text" name="subscriberName" value=""/>
</td>
</tr>
<tr>
<td>
<label name="JMSDestination">Topic Name
</td>
<td>
<input type="text" name="JMSDestination" value=""/>
</td>
<td>
<label name="selector">JMS Selector
</td>
<td>
<input type="text" name="selector" value=""/>
</td>
</tr>
<tr>
<td colspan="4" align="center">
<input type="submit" value="Create Durable Topic Subscriber"/>
</td>
</tr>
</tbody>
</table>
</form>
<h2>Active Durable Topic Subscribers
<table id="topics" class="sortable autostripe">
<thead>
<tr>
<th>Client ID
<th>Subscription Name
<th>Connection ID
<th>Destination
<th>Selector
<th>Pending Queue Size
<th>Dispatched Queue Size
<th>Dispatched Counter
<th>Enqueue Counter
<th>Dequeue Counter
<th>Operations
</tr>
</thead>
<tbody>
<c:forEach items="${requestContext.brokerQuery.durableTopicSubscribers}" var="row">
<tr>
<td> |
<td>
<td>
<td>
<td>${row.selector}
<td>${row.pendingQueueSize}
<td>${row.dispatchedQueueSize}
<td>${row.dispatchedCounter}
<td>${row.enqueueCounter}
<td>${row.dequeueCounter}
<td>
<a href="deleteSubscriber.action?clientId=${row.clientId}&subscriberName=${row.subscriptionName}&secret=Delete
</td>
</tr>
</c:forEach>
</tbody>
</table>
<h2>Offline Durable Topic Subscribers
<table id="topics" class="sortable autostripe">
<thead>
<tr>
<th>Client ID
<th>Subscription Name
<th>Connection ID
<th>Destination
<th>Selector
<th>Pending Queue Size
<th>Dispatched Queue Size
<th>Dispatched Counter
<th>Enqueue Counter
<th>Dequeue Counter
<th>Operations
</tr>
</thead>
<tbody>
<c:forEach items="${requestContext.brokerQuery.inactiveDurableTopicSubscribers}" var="row">
<tr>
<td>
<td>
<td>
<td>
<td>${row.selector}
<td>${row.pendingQueueSize}
<td>${row.dispatchedQueueSize}
<td>${row.dispatchedCounter}
<td>${row.enqueueCounter}
<td>${row.dequeueCounter}
<td>
<a href="deleteSubscriber.action?clientId=${row.clientId}&subscriberName=${row.subscriptionName}&secret=Delete
</td>
</tr>
</c:forEach>
</tbody>
</table>
</body>
</html>
Other ActiveMQ examples (source code examples)
Here is a short list of links related to this ActiveMQ subscribers.jsp source code file: