This taglib provides custom JSP tags for using JMX with JBoss application server. It is a part of JMX suite from Coldbeans - a project that collects rich set of management widgets for various application servers (See JMX collection for more details).
1. memoryMap. This tag lets you to include memory maps into your own web applications. You will be able to see
current statistics as well as run a garbage collector right from your JSP pages. For example:
and you will get some like this:
65% |
35% |
Optional parameters lets you to define size and color for this widget, as well as enable
call for garbage collector when you hit on numbers. E.g. you may use some like this:
2. lifeTime. This tag lets you to calculate life time for your server. For example:
3. deploy. This tag provides for your pages a widget for
applications uploading and deployment. For example:
4. listDeployedIterator. This tag lets you to iterate
over deployed components. For example this code prints all components:
in order to use this taglib you have to describe a Deploy servlet in your
web.xml file:
Tags are:
memoryMap
Displays memory map (used vs. free) for JBoss server. Parameters are:
1) server Optional parameter. Describes Mbean server.
By default tag displays data for default server.
2) width Optional parameter. Describes width for control.
Default value is 50
3) height Optional parameter. Describes height for control.
Default value is 180
4) freeColor Optional parameter. Describes color for free memory
painting. Default value is green.
5) usedColor Optional parameter. Describes color for used memory painting.
Default value is red
6) garbageCollector Optional parameter. Possible values are
true or false. If this value is true you will be able to run garbage collector right
from this widget. Default value is false.
lifeTime
Calculates life time for your server. Parameters are:
1) server Optional parameter. Describes Mbean server.
By default tag displays data for default server.
2) unit Optional parameter. Describes units for output.
Possible values are min, hour, day, full. Default value is day
deploy
Widget that lets you to upload and deploy application (war, jar, ear). Parameters are:
1) size Optional parameter. Describes a size for upload field.
Default value is 20.
2) title Optional parameter. Describes a title (caption) for button.
Default value is Deploy.
listDeployedIterator
Body tag. Executes own body for the each deployed component. Tag defines a nested variable of org.jboss.deployment.DeploymentInfo type. You can use this variable as a reference for a current component. Parameters are:
1) server Optional parameter. Describes Mbean server.
By default tag displays data for default server.
2) id Descibes a name for page scope variable. Type is
org.jboss.deployment.DeploymentInfo
for downloading:
Library: jbossmx.jar Description: taglib.tld
See also:
- JMX collection - a set of controls for JMX adaptors.
- Coldtags suite - the largest collection of custom JSP tags.
Related links: