|
|
ActiveMQ example source code file (connection.jsp)
This example ActiveMQ source code file (connection.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 connection.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>
<c:set var="row" value="${requestContext.connectionQuery.connection}"/>
<title>Connection
</head>
<body>
<c:choose>
<c:when test="${empty row}">
<div>
No connection could be found for ID <c:out value="${requestContext.connectionQuery.connectionID}" />
</div>
</c:when>
<c:otherwise>
<h2>Connection
<table id="header" class="sortable autostripe">
<tbody>
<tr>
<td class="label" title="Unique ID for this connection">Connection ID |
<td>
</tr>
<tr>
<td class="label" tite="Hostname and port of the connected party">Remote Address
<td>
</tr>
<tr>
<td class="label">Active
<td>
</tr>
<tr>
<td class="label">Connected
<td>
</tr>
<tr>
<td class="label">Blocked
<td>
</tr>
<tr>
<td class="label">Slow
<td>
</tr>
</tbody>
</table>
<h3>Consumers
<table id="messages" class="sortable autostripe">
<thead>
<tr>
<th>Destination
<th>SessionId
<th>Selector
<th>Enqueues
<th>Dequeues
<th>Dispatched
<th>Dispatched Queue
<th>
<span>Prefetch
<br/>
<span>Max pending
</th>
<th>
<span>Exclusive
<br/>
<span>Retroactive
</th>
</tr>
</thead>
<tbody>
<c:forEach items="${requestContext.connectionQuery.consumers}" var="consumer">
<tr>
<td>
<c:choose>
<c:when test="${consumer.destinationQueue}">
Queue <a href="browse.jsp?JMSDestination=${consumer.destinationName}">
</c:when>
<c:when test="${consumer.destinationTopic}">
Topic <a href="send.jsp?JMSDestination=${consumer.destinationName}">
</c:when>
<c:otherwise>
<c:out value="${consumer.destinationName}" />
</c:otherwise>
</c:choose>
</td>
<td>
<td>
<td>
<td>
<td>
<td>
<td>
<c:out value="${consumer.prefetchSize}" />
<c:out value="${consumer.maximumPendingMessageLimit}" />
</td>
<td>
<c:out value="${consumer.exclusive}" />
<c:out value="${consumer.retroactive}" />
</td>
</tr>
</c:forEach>
</tbody>
</table>
</c:otherwise>
</c:choose>
</body>
</html>
Other ActiveMQ examples (source code examples)
Here is a short list of links related to this ActiveMQ connection.jsp source code file: