EMBJOPR SVN: r522 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-06-11 19:26:54 -0400 (Thu, 11 Jun 2009)
New Revision: 522
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java
Log:
ScriptTest updated.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java 2009-06-11 21:46:02 UTC (rev 521)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java 2009-06-11 23:26:54 UTC (rev 522)
@@ -4,11 +4,13 @@
import com.gargoylesoftware.htmlunit.html.HtmlDivision;
import java.io.File;
import java.io.FileWriter;
+import java.io.FilenameFilter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
+import org.apache.commons.io.filefilter.SuffixFileFilter;
import org.jboss.jopr.jsfunit.ApplicationTestBaseAS5;
import org.jboss.jopr.jsfunit.exceptions.EmbJoprTestException;
import org.jboss.jopr.jsfunit.util.ActiveConditionChecker;
@@ -16,6 +18,7 @@
import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.ContentTable;
import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.ContentTableRow;
import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.NavTreeNode;
+import org.jboss.util.file.FilenamePrefixFilter;
import org.jboss.util.file.FilenameSuffixFilter;
/**
@@ -48,7 +51,9 @@
throw new EmbJoprTestException(binDir.getAbsolutePath()+" is not a directory.");
// Get the list of .sh files in the <JBOSS_HOME>/bin dir.
- File scriptFiles[] = binDir.listFiles(new FilenameSuffixFilter(".sh"));
+ log.info("Scanning directory "+binDir.getAbsolutePath());
+ //File scriptFiles[] = binDir.listFiles(new FilenameSuffixFilter("sh"));
+ File scriptFiles[] = binDir.listFiles((FilenameFilter)new SuffixFileFilter(".sh"));
/*
List<String> notListedScripts = new ArrayList();
@@ -83,7 +88,7 @@
// Remove all scripts listed on this page from the not-listed list.
ContentTable scriptListingTable = ejtt.getTabMenu().getTabContentBox().getDefaultTable();
for( ContentTableRow row : scriptListingTable.getRows() ) {
- String scriptName = row.getCell(0).getTextContent();
+ String scriptName = row.getCell(0).getTextContent().trim();
notListedScripts.remove(scriptName);
log.info("Listed script: '"+scriptName+"'");
}
15 years, 6 months
EMBJOPR SVN: r521 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-06-11 17:46:02 -0400 (Thu, 11 Jun 2009)
New Revision: 521
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java
Log:
ScriptTest updated.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java 2009-06-11 18:14:26 UTC (rev 520)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java 2009-06-11 21:46:02 UTC (rev 521)
@@ -68,6 +68,7 @@
List<String> notListedScripts = new ArrayList();
for( File file : scriptFiles ) {
notListedScripts.add(file.getName());
+ log.info("Script in bin/ : "+file.getName());
}
// Go to the scripts node.
@@ -84,6 +85,7 @@
for( ContentTableRow row : scriptListingTable.getRows() ) {
String scriptName = row.getCell(0).getTextContent();
notListedScripts.remove(scriptName);
+ log.info("Listed script: '"+scriptName+"'");
}
// Go to the next page. If there's no next page, quit the loop.
Page originalPage = ejtt.getClient().getContentPage();
15 years, 6 months
EMBJOPR SVN: r520 - trunk/jbas5/etc.
by embjopr-commits@lists.jboss.org
Author: ips
Date: 2009-06-11 14:14:26 -0400 (Thu, 11 Jun 2009)
New Revision: 520
Modified:
trunk/jbas5/etc/generated-rhq-plugin.xml
Log:
latest and greatest (contains the new EJB2 Resource types)
Modified: trunk/jbas5/etc/generated-rhq-plugin.xml
===================================================================
--- trunk/jbas5/etc/generated-rhq-plugin.xml 2009-06-11 17:46:50 UTC (rev 519)
+++ trunk/jbas5/etc/generated-rhq-plugin.xml 2009-06-11 18:14:26 UTC (rev 520)
@@ -1,7 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<plugin xmlns="urn:xmlns:rhq-plugin" xmlns:c="urn:xmlns:rhq-configuration">
<service name="NoTx ConnectionFactory">
+ <operation name="flush" displayName="Flush" description="Flush the connections in the pool"/>
+ <operation name="listFormattedSubPoolStatistics" displayName="List Formatted Sub Pool Statistics" description="Obtain a formatted statistics report">
+ <parameters>
+ <c:simple-property required="false" name="formatClassName" description="The StatisticsFormatter class name"/>
+ </parameters>
+ <results>
+ <c:notes>Obtain a formatted statistics report</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="listStatistics" displayName="List Statistics" description="Obtain a statistics report">
+ <results>
+ <c:notes>Obtain a statistics report</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="testConnection" displayName="Test Connection" description="Test if a connection can be obtained">
+ <results>
+ <c:notes>Test if a connection can be obtained</c:notes>
+ <c:simple-property type="boolean" required="false" name="result"/>
+ </results>
+ </operation>
+ <metric property="availableConnectionCount" measurementType="dynamic" displayType="detail" displayName="Available Connection Count" description="number of available connection" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionCount" measurementType="dynamic" displayType="detail" displayName="Connection Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionCreatedCount" measurementType="dynamic" displayType="detail" displayName="Connection Created Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionDestroyedCount" measurementType="dynamic" displayType="detail" displayName="Connection Destroyed Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="inUseConnectionCount" measurementType="dynamic" displayType="detail" displayName="In Use Connection Count" description="number of connections currently in use" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<metric property="local-transaction" displayType="summary" displayName="Local Transaction" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="maxConnectionsInUseCount" measurementType="dynamic" displayType="detail" displayName="Max Connections In Use Count" description="number of maximum connections in use" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="maxSize" measurementType="dynamic" displayType="detail" displayName="Max Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="minSize" measurementType="dynamic" displayType="detail" displayName="Min Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="poolJndiName" displayType="summary" displayName="Pool Jndi Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:simple-property type="integer" required="false" name="allocation-retry" description="The number of times allocation retries should be tried"/>
<c:simple-property type="long" required="false" name="allocation-retry-wait-millis" description="The time to wait between allocation retries"/>
@@ -22,6 +53,7 @@
</c:map-property>
<c:simple-property type="integer" required="false" name="min-pool-size" description="The min size of the pool"/>
<c:simple-property type="boolean" required="false" name="no-tx-separate-pools"/>
+ <c:simple-property required="false" name="poolJndiName"/>
<c:simple-property type="boolean" required="false" name="prefill" description="Whether to prefill the pool"/>
<c:simple-property name="rar-name" description="The resource adapter archive name"/>
<c:map-property required="false" name="security-domain" description="The security-domain used to validate connections">
@@ -37,7 +69,38 @@
</resource-configuration>
</service>
<service name="Tx ConnectionFactory">
+ <operation name="flush" displayName="Flush" description="Flush the connections in the pool"/>
+ <operation name="listFormattedSubPoolStatistics" displayName="List Formatted Sub Pool Statistics" description="Obtain a formatted statistics report">
+ <parameters>
+ <c:simple-property required="false" name="formatClassName" description="The StatisticsFormatter class name"/>
+ </parameters>
+ <results>
+ <c:notes>Obtain a formatted statistics report</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="listStatistics" displayName="List Statistics" description="Obtain a statistics report">
+ <results>
+ <c:notes>Obtain a statistics report</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="testConnection" displayName="Test Connection" description="Test if a connection can be obtained">
+ <results>
+ <c:notes>Test if a connection can be obtained</c:notes>
+ <c:simple-property type="boolean" required="false" name="result"/>
+ </results>
+ </operation>
+ <metric property="availableConnectionCount" measurementType="dynamic" displayType="detail" displayName="Available Connection Count" description="number of available connection" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionCount" measurementType="dynamic" displayType="detail" displayName="Connection Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionCreatedCount" measurementType="dynamic" displayType="detail" displayName="Connection Created Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionDestroyedCount" measurementType="dynamic" displayType="detail" displayName="Connection Destroyed Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="inUseConnectionCount" measurementType="dynamic" displayType="detail" displayName="In Use Connection Count" description="number of connections currently in use" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<metric property="local-transaction" displayType="summary" displayName="Local Transaction" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="maxConnectionsInUseCount" measurementType="dynamic" displayType="detail" displayName="Max Connections In Use Count" description="number of maximum connections in use" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="maxSize" measurementType="dynamic" displayType="detail" displayName="Max Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="minSize" measurementType="dynamic" displayType="detail" displayName="Min Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="poolJndiName" displayType="summary" displayName="Pool Jndi Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<metric property="xa-transaction" displayType="summary" displayName="Xa Transaction" description="The XA/local transaction behavior flag" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:simple-property type="integer" required="false" name="allocation-retry" description="The number of times allocation retries should be tried"/>
@@ -59,6 +122,7 @@
</c:map-property>
<c:simple-property type="integer" required="false" name="min-pool-size" description="The min size of the pool"/>
<c:simple-property type="boolean" required="false" name="no-tx-separate-pools"/>
+ <c:simple-property required="false" name="poolJndiName"/>
<c:simple-property type="boolean" required="false" name="prefill" description="Whether to prefill the pool"/>
<c:simple-property name="rar-name" description="The resource adapter archive name"/>
<c:map-property required="false" name="security-domain" description="The security-domain used to validate connections">
@@ -76,7 +140,38 @@
</resource-configuration>
</service>
<service name="LocalTx DataSource">
+ <operation name="flush" displayName="Flush" description="Flush the connections in the pool"/>
+ <operation name="listFormattedSubPoolStatistics" displayName="List Formatted Sub Pool Statistics" description="Obtain a formatted statistics report">
+ <parameters>
+ <c:simple-property required="false" name="formatClassName" description="The StatisticsFormatter class name"/>
+ </parameters>
+ <results>
+ <c:notes>Obtain a formatted statistics report</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="listStatistics" displayName="List Statistics" description="Obtain a statistics report">
+ <results>
+ <c:notes>Obtain a statistics report</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="testConnection" displayName="Test Connection" description="Test if a connection can be obtained">
+ <results>
+ <c:notes>Test if a connection can be obtained</c:notes>
+ <c:simple-property type="boolean" required="false" name="result"/>
+ </results>
+ </operation>
+ <metric property="availableConnectionCount" measurementType="dynamic" displayType="detail" displayName="Available Connection Count" description="number of available connection" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionCount" measurementType="dynamic" displayType="detail" displayName="Connection Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionCreatedCount" measurementType="dynamic" displayType="detail" displayName="Connection Created Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionDestroyedCount" measurementType="dynamic" displayType="detail" displayName="Connection Destroyed Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="inUseConnectionCount" measurementType="dynamic" displayType="detail" displayName="In Use Connection Count" description="number of connections currently in use" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<metric property="local-transaction" displayType="summary" displayName="Local Transaction" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="maxConnectionsInUseCount" measurementType="dynamic" displayType="detail" displayName="Max Connections In Use Count" description="number of maximum connections in use" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="maxSize" measurementType="dynamic" displayType="detail" displayName="Max Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="minSize" measurementType="dynamic" displayType="detail" displayName="Min Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="poolJndiName" displayType="summary" displayName="Pool Jndi Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:simple-property type="integer" required="false" name="allocation-retry" description="The number of times allocation retries should be tried"/>
<c:simple-property type="long" required="false" name="allocation-retry-wait-millis" description="The time to wait between allocation retries"/>
@@ -104,6 +199,7 @@
<c:simple-property required="false" name="new-connection-sql" description="The new connection SQL"/>
<c:simple-property type="boolean" required="false" name="no-tx-separate-pools"/>
<c:simple-property required="false" name="password" description="The DataSource password"/>
+ <c:simple-property required="false" name="poolJndiName"/>
<c:simple-property type="boolean" required="false" name="prefill" description="Whether to prefill the pool"/>
<c:simple-property type="integer" required="false" name="prepared-statement-cache-size" description="The DataSource prepared statement cache size"/>
<c:simple-property type="integer" required="false" name="query-timeout" description="The query timeout"/>
@@ -131,7 +227,38 @@
</resource-configuration>
</service>
<service name="NoTx DataSource">
+ <operation name="flush" displayName="Flush" description="Flush the connections in the pool"/>
+ <operation name="listFormattedSubPoolStatistics" displayName="List Formatted Sub Pool Statistics" description="Obtain a formatted statistics report">
+ <parameters>
+ <c:simple-property required="false" name="formatClassName" description="The StatisticsFormatter class name"/>
+ </parameters>
+ <results>
+ <c:notes>Obtain a formatted statistics report</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="listStatistics" displayName="List Statistics" description="Obtain a statistics report">
+ <results>
+ <c:notes>Obtain a statistics report</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="testConnection" displayName="Test Connection" description="Test if a connection can be obtained">
+ <results>
+ <c:notes>Test if a connection can be obtained</c:notes>
+ <c:simple-property type="boolean" required="false" name="result"/>
+ </results>
+ </operation>
+ <metric property="availableConnectionCount" measurementType="dynamic" displayType="detail" displayName="Available Connection Count" description="number of available connection" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionCount" measurementType="dynamic" displayType="detail" displayName="Connection Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionCreatedCount" measurementType="dynamic" displayType="detail" displayName="Connection Created Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionDestroyedCount" measurementType="dynamic" displayType="detail" displayName="Connection Destroyed Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="inUseConnectionCount" measurementType="dynamic" displayType="detail" displayName="In Use Connection Count" description="number of connections currently in use" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<metric property="local-transaction" displayType="summary" displayName="Local Transaction" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="maxConnectionsInUseCount" measurementType="dynamic" displayType="detail" displayName="Max Connections In Use Count" description="number of maximum connections in use" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="maxSize" measurementType="dynamic" displayType="detail" displayName="Max Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="minSize" measurementType="dynamic" displayType="detail" displayName="Min Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="poolJndiName" displayType="summary" displayName="Pool Jndi Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:simple-property type="integer" required="false" name="allocation-retry" description="The number of times allocation retries should be tried"/>
<c:simple-property type="long" required="false" name="allocation-retry-wait-millis" description="The time to wait between allocation retries"/>
@@ -159,6 +286,7 @@
<c:simple-property required="false" name="new-connection-sql" description="The new connection SQL"/>
<c:simple-property type="boolean" required="false" name="no-tx-separate-pools"/>
<c:simple-property required="false" name="password" description="The DataSource password"/>
+ <c:simple-property required="false" name="poolJndiName"/>
<c:simple-property type="boolean" required="false" name="prefill" description="Whether to prefill the pool"/>
<c:simple-property type="integer" required="false" name="prepared-statement-cache-size" description="The DataSource prepared statement cache size"/>
<c:simple-property type="integer" required="false" name="query-timeout" description="The query timeout"/>
@@ -186,7 +314,38 @@
</resource-configuration>
</service>
<service name="XA DataSource">
+ <operation name="flush" displayName="Flush" description="Flush the connections in the pool"/>
+ <operation name="listFormattedSubPoolStatistics" displayName="List Formatted Sub Pool Statistics" description="Obtain a formatted statistics report">
+ <parameters>
+ <c:simple-property required="false" name="formatClassName" description="The StatisticsFormatter class name"/>
+ </parameters>
+ <results>
+ <c:notes>Obtain a formatted statistics report</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="listStatistics" displayName="List Statistics" description="Obtain a statistics report">
+ <results>
+ <c:notes>Obtain a statistics report</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="testConnection" displayName="Test Connection" description="Test if a connection can be obtained">
+ <results>
+ <c:notes>Test if a connection can be obtained</c:notes>
+ <c:simple-property type="boolean" required="false" name="result"/>
+ </results>
+ </operation>
+ <metric property="availableConnectionCount" measurementType="dynamic" displayType="detail" displayName="Available Connection Count" description="number of available connection" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionCount" measurementType="dynamic" displayType="detail" displayName="Connection Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionCreatedCount" measurementType="dynamic" displayType="detail" displayName="Connection Created Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="connectionDestroyedCount" measurementType="dynamic" displayType="detail" displayName="Connection Destroyed Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="inUseConnectionCount" measurementType="dynamic" displayType="detail" displayName="In Use Connection Count" description="number of connections currently in use" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<metric property="local-transaction" displayType="summary" displayName="Local Transaction" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="maxConnectionsInUseCount" measurementType="dynamic" displayType="detail" displayName="Max Connections In Use Count" description="number of maximum connections in use" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="maxSize" measurementType="dynamic" displayType="detail" displayName="Max Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="minSize" measurementType="dynamic" displayType="detail" displayName="Min Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="poolJndiName" displayType="summary" displayName="Pool Jndi Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:simple-property type="integer" required="false" name="allocation-retry" description="The number of times allocation retries should be tried"/>
<c:simple-property type="long" required="false" name="allocation-retry-wait-millis" description="The time to wait between allocation retries"/>
@@ -211,6 +370,7 @@
<c:simple-property required="false" name="new-connection-sql" description="The new connection SQL"/>
<c:simple-property type="boolean" required="false" name="no-tx-separate-pools"/>
<c:simple-property required="false" name="password" description="The DataSource password"/>
+ <c:simple-property required="false" name="poolJndiName"/>
<c:simple-property type="boolean" required="false" name="prefill" description="Whether to prefill the pool"/>
<c:simple-property type="integer" required="false" name="prepared-statement-cache-size" description="The DataSource prepared statement cache size"/>
<c:simple-property type="integer" required="false" name="query-timeout" description="The query timeout"/>
@@ -241,25 +401,384 @@
<c:simple-property type="integer" required="false" name="xa-resource-timeout" description="The XAResource timeout"/>
</resource-configuration>
</service>
- <service name="SFSB EJB3">
- <metric property="availableCount" measurementType="dynamic" displayType="detail" displayName="Available Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="cacheSize" measurementType="dynamic" displayType="detail" displayName="Cache Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="createCount" measurementType="dynamic" displayType="detail" displayName="Create Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="currentSize" measurementType="dynamic" displayType="detail" displayName="Current Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="maxSize" measurementType="dynamic" displayType="detail" displayName="Max Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="passivatedCount" measurementType="dynamic" displayType="detail" displayName="Passivated Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="removeCount" measurementType="dynamic" displayType="detail" displayName="Remove Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="totalSize" measurementType="dynamic" displayType="detail" displayName="Total Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <service name="Entity EJB">
+ <operation name="create" displayName="Create"/>
+ <operation name="destroy" displayName="Destroy"/>
+ <operation name="flushCache" displayName="Flush Cache"/>
+ <operation name="getTimerService" displayName="Get Timer Service">
+ <parameters>
+ <c:map-property required="false" name="p1" description=""/>
+ </parameters>
+ <results>
+ <c:notes>getTimerService</c:notes>
+ <c:map-property required="false" name="result">
+ <c:list-property name="timers">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ </c:map-property>
+ </results>
+ </operation>
+ <operation name="invoke" displayName="Invoke">
+ <parameters>
+ <c:map-property required="false" name="p1" description="">
+ <c:list-property name="arguments">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ <c:map-property required="false" name="asIsPayload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ <c:simple-property type="boolean" required="false" name="interVM"/>
+ <c:simple-property type="boolean" required="false" name="local"/>
+ <c:map-property required="false" name="payload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ <c:simple-property type="boolean" required="false" name="secure"/>
+ <c:map-property required="false" name="transientPayload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ </c:map-property>
+ </parameters>
+ <results>
+ <c:notes>invoke</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="jbossInternalLifecycle" displayName="Jboss Internal Lifecycle">
+ <parameters>
+ <c:simple-property required="false" name="p1" description=""/>
+ </parameters>
+ </operation>
+ <operation name="removeTimerService" displayName="Remove Timer Service">
+ <parameters>
+ <c:map-property required="false" name="p1" description=""/>
+ </parameters>
+ </operation>
+ <operation name="resetInvocationStats" displayName="Reset Invocation Stats"/>
+ <operation name="start" displayName="Start"/>
+ <operation name="stop" displayName="Stop"/>
+ <metric property="BeanMetaData.beanManagedTx" measurementType="dynamic" displayType="detail" displayName="Bean Managed Tx" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.callByValue" measurementType="dynamic" displayType="detail" displayName="Call By Value" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.clustered" measurementType="dynamic" displayType="detail" displayName="Clustered" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.configurationName" displayType="detail" displayName="Configuration Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.containerManagedTx" measurementType="dynamic" displayType="detail" displayName="Container Managed Tx" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.containerObjectNameJndiName" displayType="detail" displayName="Container Object Name Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.defaultConfigurationName" displayType="detail" displayName="Default Configuration Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.ejbClass" displayType="detail" displayName="Ejb Class" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.ejbName" displayType="detail" displayName="Ejb Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.entity" measurementType="dynamic" displayType="detail" displayName="Entity" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.exceptionRollback" measurementType="dynamic" displayType="detail" displayName="Exception Rollback" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.excludeMissingMethods" measurementType="dynamic" displayType="detail" displayName="Exclude Missing Methods" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.home" displayType="detail" displayName="Home" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.jndiName" displayType="detail" displayName="Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.local" displayType="detail" displayName="Local" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.localHome" displayType="detail" displayName="Local Home" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.localJndiName" displayType="detail" displayName="Local Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.messageDriven" measurementType="dynamic" displayType="detail" displayName="Message Driven" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.remote" displayType="detail" displayName="Remote" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.securityProxy" displayType="detail" displayName="Security Proxy" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.serviceEndpoint" displayType="detail" displayName="Service Endpoint" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.session" measurementType="dynamic" displayType="detail" displayName="Session" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.timerPersistence" measurementType="dynamic" displayType="detail" displayName="Timer Persistence" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanTypeName" displayType="summary" displayName="Bean Type Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="CacheSize" measurementType="dynamic" displayType="detail" displayName="Cache Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="CreateCount" measurementType="dynamic" displayType="detail" displayName="Create Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DeploymentName" displayType="summary" displayName="Deployment Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="DetypedInvocationStatistics.concurrentCalls" measurementType="dynamic" displayType="detail" displayName="Concurrent Calls" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DetypedInvocationStatistics.lastResetTime" measurementType="dynamic" displayType="detail" displayName="Last Reset Time" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DetypedInvocationStatistics.maxConcurrentCalls" measurementType="dynamic" displayType="detail" displayName="Max Concurrent Calls" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.callByValue" measurementType="dynamic" displayType="detail" displayName="Call By Value" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.name" displayType="detail" displayName="Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="EjbModule.state" measurementType="dynamic" displayType="detail" displayName="State" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.stateString" displayType="detail" displayName="State String" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="EnvContext.nameInNamespace" displayType="detail" displayName="Name In Namespace" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="Name" displayType="summary" displayName="Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="RemoveCount" measurementType="dynamic" displayType="detail" displayName="Remove Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="State" measurementType="dynamic" displayType="detail" displayName="State" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="StateString" displayType="summary" displayName="State String" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
</service>
+ <service name="MDB EJB">
+ <operation name="create" displayName="Create"/>
+ <operation name="destroy" displayName="Destroy"/>
+ <operation name="getTimerService" displayName="Get Timer Service">
+ <parameters>
+ <c:map-property required="false" name="p1" description=""/>
+ </parameters>
+ <results>
+ <c:notes>getTimerService</c:notes>
+ <c:map-property required="false" name="result">
+ <c:list-property name="timers">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ </c:map-property>
+ </results>
+ </operation>
+ <operation name="invoke" displayName="Invoke">
+ <parameters>
+ <c:map-property required="false" name="p1" description="">
+ <c:list-property name="arguments">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ <c:map-property required="false" name="asIsPayload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ <c:simple-property type="boolean" required="false" name="interVM"/>
+ <c:simple-property type="boolean" required="false" name="local"/>
+ <c:map-property required="false" name="payload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ <c:simple-property type="boolean" required="false" name="secure"/>
+ <c:map-property required="false" name="transientPayload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ </c:map-property>
+ </parameters>
+ <results>
+ <c:notes>invoke</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="jbossInternalLifecycle" displayName="Jboss Internal Lifecycle">
+ <parameters>
+ <c:simple-property required="false" name="p1" description=""/>
+ </parameters>
+ </operation>
+ <operation name="removeTimerService" displayName="Remove Timer Service">
+ <parameters>
+ <c:map-property required="false" name="p1" description=""/>
+ </parameters>
+ </operation>
+ <operation name="resetInvocationStats" displayName="Reset Invocation Stats"/>
+ <operation name="start" displayName="Start"/>
+ <operation name="stop" displayName="Stop"/>
+ <metric property="BeanMetaData.beanManagedTx" measurementType="dynamic" displayType="detail" displayName="Bean Managed Tx" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.callByValue" measurementType="dynamic" displayType="detail" displayName="Call By Value" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.clustered" measurementType="dynamic" displayType="detail" displayName="Clustered" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.configurationName" displayType="detail" displayName="Configuration Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.containerManagedTx" measurementType="dynamic" displayType="detail" displayName="Container Managed Tx" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.containerObjectNameJndiName" displayType="detail" displayName="Container Object Name Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.defaultConfigurationName" displayType="detail" displayName="Default Configuration Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.ejbClass" displayType="detail" displayName="Ejb Class" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.ejbName" displayType="detail" displayName="Ejb Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.entity" measurementType="dynamic" displayType="detail" displayName="Entity" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.exceptionRollback" measurementType="dynamic" displayType="detail" displayName="Exception Rollback" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.excludeMissingMethods" measurementType="dynamic" displayType="detail" displayName="Exclude Missing Methods" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.home" displayType="detail" displayName="Home" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.jndiName" displayType="detail" displayName="Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.local" displayType="detail" displayName="Local" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.localHome" displayType="detail" displayName="Local Home" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.localJndiName" displayType="detail" displayName="Local Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.messageDriven" measurementType="dynamic" displayType="detail" displayName="Message Driven" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.remote" displayType="detail" displayName="Remote" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.securityProxy" displayType="detail" displayName="Security Proxy" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.serviceEndpoint" displayType="detail" displayName="Service Endpoint" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.session" measurementType="dynamic" displayType="detail" displayName="Session" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.timerPersistence" measurementType="dynamic" displayType="detail" displayName="Timer Persistence" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanTypeName" displayType="summary" displayName="Bean Type Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="CreateCount" measurementType="dynamic" displayType="detail" displayName="Create Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DeploymentName" displayType="summary" displayName="Deployment Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="DetypedInvocationStatistics.concurrentCalls" measurementType="dynamic" displayType="detail" displayName="Concurrent Calls" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DetypedInvocationStatistics.lastResetTime" measurementType="dynamic" displayType="detail" displayName="Last Reset Time" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DetypedInvocationStatistics.maxConcurrentCalls" measurementType="dynamic" displayType="detail" displayName="Max Concurrent Calls" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.callByValue" measurementType="dynamic" displayType="detail" displayName="Call By Value" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.name" displayType="detail" displayName="Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="EjbModule.state" measurementType="dynamic" displayType="detail" displayName="State" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.stateString" displayType="detail" displayName="State String" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="EnvContext.nameInNamespace" displayType="detail" displayName="Name In Namespace" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="MessageCount" measurementType="dynamic" displayType="detail" displayName="Message Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="Name" displayType="summary" displayName="Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="RemoveCount" measurementType="dynamic" displayType="detail" displayName="Remove Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="State" measurementType="dynamic" displayType="detail" displayName="State" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="StateString" displayType="summary" displayName="State String" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ </service>
+ <service name="StatefulSession EJB">
+ <operation name="create" displayName="Create"/>
+ <operation name="destroy" displayName="Destroy"/>
+ <operation name="getTimerService" displayName="Get Timer Service">
+ <parameters>
+ <c:map-property required="false" name="p1" description=""/>
+ </parameters>
+ <results>
+ <c:notes>getTimerService</c:notes>
+ <c:map-property required="false" name="result">
+ <c:list-property name="timers">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ </c:map-property>
+ </results>
+ </operation>
+ <operation name="invoke" displayName="Invoke">
+ <parameters>
+ <c:map-property required="false" name="p1" description="">
+ <c:list-property name="arguments">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ <c:map-property required="false" name="asIsPayload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ <c:simple-property type="boolean" required="false" name="interVM"/>
+ <c:simple-property type="boolean" required="false" name="local"/>
+ <c:map-property required="false" name="payload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ <c:simple-property type="boolean" required="false" name="secure"/>
+ <c:map-property required="false" name="transientPayload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ </c:map-property>
+ </parameters>
+ <results>
+ <c:notes>invoke</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="jbossInternalLifecycle" displayName="Jboss Internal Lifecycle">
+ <parameters>
+ <c:simple-property required="false" name="p1" description=""/>
+ </parameters>
+ </operation>
+ <operation name="removeTimerService" displayName="Remove Timer Service">
+ <parameters>
+ <c:map-property required="false" name="p1" description=""/>
+ </parameters>
+ </operation>
+ <operation name="resetInvocationStats" displayName="Reset Invocation Stats"/>
+ <operation name="start" displayName="Start"/>
+ <operation name="stop" displayName="Stop"/>
+ <metric property="BeanMetaData.beanManagedTx" measurementType="dynamic" displayType="detail" displayName="Bean Managed Tx" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.callByValue" measurementType="dynamic" displayType="detail" displayName="Call By Value" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.clustered" measurementType="dynamic" displayType="detail" displayName="Clustered" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.configurationName" displayType="detail" displayName="Configuration Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.containerManagedTx" measurementType="dynamic" displayType="detail" displayName="Container Managed Tx" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.containerObjectNameJndiName" displayType="detail" displayName="Container Object Name Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.defaultConfigurationName" displayType="detail" displayName="Default Configuration Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.ejbClass" displayType="detail" displayName="Ejb Class" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.ejbName" displayType="detail" displayName="Ejb Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.entity" measurementType="dynamic" displayType="detail" displayName="Entity" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.exceptionRollback" measurementType="dynamic" displayType="detail" displayName="Exception Rollback" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.excludeMissingMethods" measurementType="dynamic" displayType="detail" displayName="Exclude Missing Methods" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.home" displayType="detail" displayName="Home" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.jndiName" displayType="detail" displayName="Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.local" displayType="detail" displayName="Local" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.localHome" displayType="detail" displayName="Local Home" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.localJndiName" displayType="detail" displayName="Local Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.messageDriven" measurementType="dynamic" displayType="detail" displayName="Message Driven" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.remote" displayType="detail" displayName="Remote" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.securityProxy" displayType="detail" displayName="Security Proxy" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.serviceEndpoint" displayType="detail" displayName="Service Endpoint" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.session" measurementType="dynamic" displayType="detail" displayName="Session" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.timerPersistence" measurementType="dynamic" displayType="detail" displayName="Timer Persistence" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanTypeName" displayType="summary" displayName="Bean Type Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="CreateCount" measurementType="dynamic" displayType="detail" displayName="Create Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DeploymentName" displayType="summary" displayName="Deployment Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="DetypedInvocationStatistics.concurrentCalls" measurementType="dynamic" displayType="detail" displayName="Concurrent Calls" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DetypedInvocationStatistics.lastResetTime" measurementType="dynamic" displayType="detail" displayName="Last Reset Time" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DetypedInvocationStatistics.maxConcurrentCalls" measurementType="dynamic" displayType="detail" displayName="Max Concurrent Calls" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.callByValue" measurementType="dynamic" displayType="detail" displayName="Call By Value" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.name" displayType="detail" displayName="Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="EjbModule.state" measurementType="dynamic" displayType="detail" displayName="State" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.stateString" displayType="detail" displayName="State String" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="EnvContext.nameInNamespace" displayType="detail" displayName="Name In Namespace" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="Name" displayType="summary" displayName="Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="RemoveCount" measurementType="dynamic" displayType="detail" displayName="Remove Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="State" measurementType="dynamic" displayType="detail" displayName="State" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="StateString" displayType="summary" displayName="State String" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ </service>
+ <service name="StatelessSession EJB">
+ <operation name="create" displayName="Create"/>
+ <operation name="destroy" displayName="Destroy"/>
+ <operation name="getTimerService" displayName="Get Timer Service">
+ <parameters>
+ <c:map-property required="false" name="p1" description=""/>
+ </parameters>
+ <results>
+ <c:notes>getTimerService</c:notes>
+ <c:map-property required="false" name="result">
+ <c:list-property name="timers">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ </c:map-property>
+ </results>
+ </operation>
+ <operation name="invoke" displayName="Invoke">
+ <parameters>
+ <c:map-property required="false" name="p1" description="">
+ <c:list-property name="arguments">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ <c:map-property required="false" name="asIsPayload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ <c:simple-property type="boolean" required="false" name="interVM"/>
+ <c:simple-property type="boolean" required="false" name="local"/>
+ <c:map-property required="false" name="payload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ <c:simple-property type="boolean" required="false" name="secure"/>
+ <c:map-property required="false" name="transientPayload">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ </c:map-property>
+ </parameters>
+ <results>
+ <c:notes>invoke</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="jbossInternalLifecycle" displayName="Jboss Internal Lifecycle">
+ <parameters>
+ <c:simple-property required="false" name="p1" description=""/>
+ </parameters>
+ </operation>
+ <operation name="removeTimerService" displayName="Remove Timer Service">
+ <parameters>
+ <c:map-property required="false" name="p1" description=""/>
+ </parameters>
+ </operation>
+ <operation name="resetInvocationStats" displayName="Reset Invocation Stats"/>
+ <operation name="start" displayName="Start"/>
+ <operation name="stop" displayName="Stop"/>
+ <metric property="BeanMetaData.beanManagedTx" measurementType="dynamic" displayType="detail" displayName="Bean Managed Tx" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.callByValue" measurementType="dynamic" displayType="detail" displayName="Call By Value" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.clustered" measurementType="dynamic" displayType="detail" displayName="Clustered" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.configurationName" displayType="detail" displayName="Configuration Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.containerManagedTx" measurementType="dynamic" displayType="detail" displayName="Container Managed Tx" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.containerObjectNameJndiName" displayType="detail" displayName="Container Object Name Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.defaultConfigurationName" displayType="detail" displayName="Default Configuration Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.ejbClass" displayType="detail" displayName="Ejb Class" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.ejbName" displayType="detail" displayName="Ejb Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.entity" measurementType="dynamic" displayType="detail" displayName="Entity" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.exceptionRollback" measurementType="dynamic" displayType="detail" displayName="Exception Rollback" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.excludeMissingMethods" measurementType="dynamic" displayType="detail" displayName="Exclude Missing Methods" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.home" displayType="detail" displayName="Home" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.jndiName" displayType="detail" displayName="Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.local" displayType="detail" displayName="Local" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.localHome" displayType="detail" displayName="Local Home" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.localJndiName" displayType="detail" displayName="Local Jndi Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.messageDriven" measurementType="dynamic" displayType="detail" displayName="Message Driven" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.remote" displayType="detail" displayName="Remote" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.securityProxy" displayType="detail" displayName="Security Proxy" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.serviceEndpoint" displayType="detail" displayName="Service Endpoint" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="BeanMetaData.session" measurementType="dynamic" displayType="detail" displayName="Session" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanMetaData.timerPersistence" measurementType="dynamic" displayType="detail" displayName="Timer Persistence" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="BeanTypeName" displayType="summary" displayName="Bean Type Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="CreateCount" measurementType="dynamic" displayType="detail" displayName="Create Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DeploymentName" displayType="summary" displayName="Deployment Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="DetypedInvocationStatistics.concurrentCalls" measurementType="dynamic" displayType="detail" displayName="Concurrent Calls" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DetypedInvocationStatistics.lastResetTime" measurementType="dynamic" displayType="detail" displayName="Last Reset Time" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="DetypedInvocationStatistics.maxConcurrentCalls" measurementType="dynamic" displayType="detail" displayName="Max Concurrent Calls" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.callByValue" measurementType="dynamic" displayType="detail" displayName="Call By Value" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.name" displayType="detail" displayName="Name" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="EjbModule.state" measurementType="dynamic" displayType="detail" displayName="State" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="EjbModule.stateString" displayType="detail" displayName="State String" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="EnvContext.nameInNamespace" displayType="detail" displayName="Name In Namespace" defaultOn="true" defaultInterval="60000" dataType="trait" category="performance"/>
+ <metric property="Name" displayType="summary" displayName="Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <metric property="RemoveCount" measurementType="dynamic" displayType="detail" displayName="Remove Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="State" measurementType="dynamic" displayType="detail" displayName="State" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="StateString" displayType="summary" displayName="State String" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ </service>
<service name="SLSB EJB3">
- <metric property="availableCount" measurementType="dynamic" displayType="detail" displayName="Available Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="createCount" measurementType="dynamic" displayType="detail" displayName="Create Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="currentSize" measurementType="dynamic" displayType="detail" displayName="Current Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="maxSize" measurementType="dynamic" displayType="detail" displayName="Max Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="removeCount" measurementType="dynamic" displayType="detail" displayName="Remove Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- </service>
- <service name="Session EJB3">
<operation name="resetStats" displayName="Reset Stats" description=""/>
+ <metric property="lastResetTime" measurementType="dynamic" displayType="detail" displayName="Last Reset Time" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
</service>
<service name="Queue JMSDestination">
<operation name="create" displayName="Create" description="Service lifecycle operation"/>
@@ -492,17 +1011,49 @@
</resource-configuration>
</service>
<service name="Platform MBean">
+ <operation name="gc" displayName="Gc" description="Runs the garbage collector"/>
<resource-configuration>
- <c:simple-property type="long" required="false" readOnly="true" name="collectionCount"/>
- <c:simple-property type="long" required="false" readOnly="true" name="collectionTime"/>
- <c:list-property required="false" readOnly="true" name="memoryPoolNames">
- <c:simple-property required="false" name="element"/>
- </c:list-property>
- <c:simple-property required="false" readOnly="true" name="name"/>
- <c:simple-property type="boolean" required="false" readOnly="true" name="valid"/>
+ <c:map-property required="false" readOnly="true" name="heapMemoryUsage" description="object representing the heap memory usage.">
+ <c:simple-property type="long" required="false" name="committed"/>
+ <c:simple-property type="long" required="false" name="init"/>
+ <c:simple-property type="long" required="false" name="max"/>
+ <c:simple-property type="long" required="false" name="used"/>
+ </c:map-property>
+ <c:map-property required="false" readOnly="true" name="nonHeapMemoryUsage" description="object representing the non-heap memory usage.">
+ <c:simple-property type="long" required="false" name="committed"/>
+ <c:simple-property type="long" required="false" name="init"/>
+ <c:simple-property type="long" required="false" name="max"/>
+ <c:simple-property type="long" required="false" name="used"/>
+ </c:map-property>
+ <c:simple-property type="integer" required="false" readOnly="true" name="objectPendingFinalizationCount" description="the approximate number objects for which finalization is pending."/>
+ <c:simple-property type="boolean" required="false" name="verbose" description="the verbose output flag for the memory system."/>
</resource-configuration>
</service>
<service name="Servlet MBean">
+ <operation name="findMappingObject" displayName="Find Mapping Object">
+ <results>
+ <c:notes>findMappingObject</c:notes>
+ <c:map-property required="false" name="result">
+ <c:simple-property type="long" required="false" name="available"/>
+ <c:simple-property required="false" name="jspFile"/>
+ <c:simple-property type="integer" required="false" name="loadOnStartup"/>
+ <c:simple-property required="false" name="runAs"/>
+ <c:simple-property required="false" name="servletClass"/>
+ <c:list-property name="servletMethods">
+ <c:simple-property required="false" name="element"/>
+ </c:list-property>
+ <c:simple-property type="boolean" required="false" name="unavailable"/>
+ </c:map-property>
+ </results>
+ </operation>
+ <operation name="findMappings" displayName="Find Mappings">
+ <results>
+ <c:notes>findMappings</c:notes>
+ <c:list-property name="result">
+ <c:simple-property required="false" name="element"/>
+ </c:list-property>
+ </results>
+ </operation>
<metric property="classLoadTime" measurementType="dynamic" displayType="detail" displayName="Class Load Time" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<metric property="engineName" displayType="summary" displayName="Engine Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<metric property="errorCount" measurementType="dynamic" displayType="detail" displayName="Error Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
@@ -518,16 +1069,90 @@
<metric property="statisticsProvider" displayType="summary" displayName="Statistics Provider" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
</service>
<service name="Web MBean">
- <metric property="currentThreadCount" measurementType="dynamic" displayType="detail" displayName="Current Thread Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="currentThreadsBusy" measurementType="dynamic" displayType="detail" displayName="Current Threads Busy" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="maxThreads" measurementType="dynamic" displayType="detail" displayName="Max Threads" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="threadPriority" measurementType="dynamic" displayType="detail" displayName="Thread Priority" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<resource-configuration>
+ <c:list-property required="false" readOnly="true" name="aliases" description="The Host aliases">
+ <c:simple-property required="false" name="element"/>
+ </c:list-property>
<c:simple-property required="false" readOnly="true" name="mbeanNameAsString"/>
<c:simple-property required="false" name="state" description="The bean controller state"/>
+ <c:simple-property type="boolean" required="false" readOnly="true" name="unpackWARs" description="Unpack WARs property"/>
+ <c:list-property required="false" readOnly="true" name="valveNames" description="The MBean Names of the Valves associated with this Host">
+ <c:simple-property required="false" name="element"/>
+ </c:list-property>
</resource-configuration>
</service>
<service name="WebApplication MBean">
+ <operation name="addLifecycleListener" displayName="Add Lifecycle Listener">
+ <parameters>
+ <c:map-property required="false" name="listener" description="New lifecycle listener to be added"/>
+ </parameters>
+ </operation>
+ <operation name="addValve" displayName="Add Valve">
+ <parameters>
+ <c:map-property required="false" name="valve" description="New valve to be added">
+ <c:simple-property required="false" name="info"/>
+ </c:map-property>
+ </parameters>
+ </operation>
+ <operation name="destroy" displayName="Destroy"/>
+ <operation name="findMappingObject" displayName="Find Mapping Object">
+ <results>
+ <c:notes>findMappingObject</c:notes>
+ <c:map-property required="false" name="result">
+ <c:simple-property required="false" name="altDDName"/>
+ <c:list-property name="applicationEventListeners">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ <c:list-property name="applicationLifecycleListeners">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ <c:simple-property type="boolean" required="false" name="available"/>
+ <c:simple-property required="false" name="configFile"/>
+ <c:simple-property type="boolean" required="false" name="configured"/>
+ <c:simple-property type="boolean" required="false" name="cookies"/>
+ <c:simple-property type="boolean" required="false" name="crossContext"/>
+ <c:simple-property required="false" name="displayName"/>
+ <c:simple-property type="boolean" required="false" name="distributable"/>
+ <c:simple-property required="false" name="docBase"/>
+ <c:simple-property required="false" name="encodedPath"/>
+ <c:simple-property type="boolean" required="false" name="ignoreAnnotations"/>
+ <c:simple-property type="boolean" required="false" name="override"/>
+ <c:simple-property required="false" name="path"/>
+ <c:simple-property type="boolean" required="false" name="privileged"/>
+ <c:simple-property required="false" name="publicId"/>
+ <c:simple-property type="boolean" required="false" name="reloadable"/>
+ <c:simple-property type="integer" required="false" name="sessionTimeout"/>
+ <c:simple-property type="boolean" required="false" name="swallowOutput"/>
+ <c:simple-property type="boolean" required="false" name="tldNamespaceAware"/>
+ <c:simple-property type="boolean" required="false" name="tldValidation"/>
+ <c:simple-property required="false" name="wrapperClass"/>
+ <c:simple-property type="boolean" required="false" name="xmlNamespaceAware"/>
+ <c:simple-property type="boolean" required="false" name="xmlValidation"/>
+ </c:map-property>
+ </results>
+ </operation>
+ <operation name="findStaticResources" displayName="Find Static Resources">
+ <results>
+ <c:notes>findStaticResources</c:notes>
+ <c:map-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="init" displayName="Init"/>
+ <operation name="reload" displayName="Reload"/>
+ <operation name="removeLifecycleListener" displayName="Remove Lifecycle Listener">
+ <parameters>
+ <c:map-property required="false" name="listener" description="New lifecycle listener to be removed"/>
+ </parameters>
+ </operation>
+ <operation name="removeValve" displayName="Remove Valve">
+ <parameters>
+ <c:map-property required="false" name="valve" description="New valve to be removed">
+ <c:simple-property required="false" name="info"/>
+ </c:map-property>
+ </parameters>
+ </operation>
+ <operation name="start" displayName="Start"/>
+ <operation name="stop" displayName="Stop"/>
<metric property="allowLinking" displayType="summary" displayName="Allow Linking" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<metric property="antiJARLocking" displayType="summary" displayName="Anti JAR Locking" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<metric property="antiResourceLocking" displayType="summary" displayName="Anti Resource Locking" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
@@ -591,6 +1216,45 @@
<metric property="workDir" displayType="summary" displayName="Work Dir" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
</service>
<service name="WebApplicationManager MBean">
+ <operation name="expireSession" displayName="Expire Session">
+ <parameters>
+ <c:simple-property required="false" name="sessionId" description="Id of the session"/>
+ </parameters>
+ </operation>
+ <operation name="getCreationTime" displayName="Get Creation Time">
+ <parameters>
+ <c:simple-property required="false" name="sessionId" description="Id of the session"/>
+ </parameters>
+ <results>
+ <c:notes>getCreationTime</c:notes>
+ <c:simple-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="getLastAccessedTime" displayName="Get Last Accessed Time">
+ <parameters>
+ <c:simple-property required="false" name="sessionId" description="Id of the session"/>
+ </parameters>
+ <results>
+ <c:notes>getLastAccessedTime</c:notes>
+ <c:simple-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="getSessionAttribute" displayName="Get Session Attribute">
+ <parameters>
+ <c:simple-property required="false" name="sessionId" description="Id of the session"/>
+ <c:simple-property required="false" name="key" description="key of the attribute"/>
+ </parameters>
+ <results>
+ <c:notes>getSessionAttribute</c:notes>
+ <c:simple-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="listSessionIds" displayName="List Session Ids">
+ <results>
+ <c:notes>listSessionIds</c:notes>
+ <c:simple-property required="false" name="result"/>
+ </results>
+ </operation>
<metric property="activeSessions" measurementType="dynamic" displayType="detail" displayName="Active Sessions" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<metric property="algorithm" displayType="summary" displayName="Algorithm" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<metric property="className" displayType="summary" displayName="Class Name" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
@@ -614,6 +1278,39 @@
<metric property="sessionMaxAliveTime" measurementType="dynamic" displayType="detail" displayName="Session Max Alive Time" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
</service>
<service name="WebHost MBean">
+ <operation name="addAlias" displayName="Add Alias">
+ <parameters>
+ <c:simple-property required="false" name="alias" description="The alias to be added"/>
+ </parameters>
+ </operation>
+ <operation name="addChild" displayName="Add Child">
+ <parameters>
+ <c:map-property required="false" name="child" description="Context to be added">
+ <c:simple-property type="integer" required="false" name="backgroundProcessorDelay"/>
+ <c:simple-property required="false" name="info"/>
+ <c:simple-property required="false" name="name"/>
+ <c:simple-property required="false" name="objectName"/>
+ <c:simple-property type="boolean" required="false" name="started"/>
+ </c:map-property>
+ </parameters>
+ </operation>
+ <operation name="destroy" displayName="Destroy"/>
+ <operation name="findAliases" displayName="Find Aliases">
+ <results>
+ <c:notes>findAliases</c:notes>
+ <c:list-property name="result">
+ <c:simple-property required="false" name="element"/>
+ </c:list-property>
+ </results>
+ </operation>
+ <operation name="init" displayName="Init"/>
+ <operation name="removeAlias" displayName="Remove Alias">
+ <parameters>
+ <c:simple-property required="false" name="alias" description="Alias name to be removed"/>
+ </parameters>
+ </operation>
+ <operation name="start" displayName="Start"/>
+ <operation name="stop" displayName="Stop"/>
<metric property="appBase" displayType="summary" displayName="App Base" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<metric property="autoDeploy" displayType="summary" displayName="Auto Deploy" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<metric property="configClass" displayType="summary" displayName="Config Class" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
@@ -627,6 +1324,7 @@
<metric property="xmlValidation" displayType="summary" displayName="Xml Validation" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
</service>
<service name="WebRequestProcessor MBean">
+ <operation name="resetCounters" displayName="Reset Counters"/>
<metric property="bytesReceived" measurementType="dynamic" displayType="detail" displayName="Bytes Received" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<metric property="bytesSent" measurementType="dynamic" displayType="detail" displayName="Bytes Sent" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<metric property="errorCount" measurementType="dynamic" displayType="detail" displayName="Error Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
@@ -636,6 +1334,12 @@
<metric property="requestCount" measurementType="dynamic" displayType="detail" displayName="Request Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
</service>
<service name="WebThreadPool MBean">
+ <operation name="destroy" displayName="Destroy"/>
+ <operation name="init" displayName="Init"/>
+ <operation name="pause" displayName="Pause"/>
+ <operation name="resume" displayName="Resume"/>
+ <operation name="start" displayName="Start"/>
+ <operation name="stop" displayName="Stop"/>
<metric property="acceptorThreadCount" measurementType="dynamic" displayType="detail" displayName="Acceptor Thread Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<metric property="backlog" measurementType="dynamic" displayType="detail" displayName="Backlog" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<metric property="currentThreadCount" measurementType="dynamic" displayType="detail" displayName="Current Thread Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
@@ -652,7 +1356,7 @@
<metric property="tcpNoDelay" displayType="summary" displayName="Tcp No Delay" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<metric property="threadPriority" measurementType="dynamic" displayType="detail" displayName="Thread Priority" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
</service>
- <service name="KernelDeploymentComponentMapper MCBean">
+ <service name="bootstrap-classloader:0.0.0 MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -660,7 +1364,12 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ClassLoaderSystem MCBean">
+ <service name="ManagementView MCBean">
+ <resource-configuration>
+ <c:simple-property required="false" name="state" description="The bean controller state"/>
+ </resource-configuration>
+ </service>
+ <service name="jmx-classloader:0.0.0 MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -668,7 +1377,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ClassLoaderDeployer MCBean">
+ <service name="DeclaredStructure MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -676,7 +1385,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="JMXKernel MCBean">
+ <service name="BeanMetaDataICF MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -684,7 +1393,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="AOPClassLoaderScopingPolicy MCBean">
+ <service name="ClassLoadingDefaultDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -692,7 +1401,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="aop-classloader:0.0.0$MODULE MCBean">
+ <service name="DefaultDeploymentRepositoryFactory MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -700,7 +1409,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="bootstrap-classloader:0.0.0$MODULE MCBean">
+ <service name="JMXStartStopAdvice$AspectBinding MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -708,7 +1417,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="deployers-classloader:0.0.0 MCBean">
+ <service name="ProfileService MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -716,7 +1425,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="profile-classloader:0.0.0 MCBean">
+ <service name="bootstrap-classloader:0.0.0$MODULE MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -724,7 +1433,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="KernelDeploymentManagedObjectCreator MCBean">
+ <service name="ClassLoaderSystem MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -732,7 +1441,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="JARStructureCandidates MCBean">
+ <service name="aop-classloader:0.0.0$MODULE MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -740,7 +1449,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ServiceDeploymentDeployer MCBean">
+ <service name="StructuralDeployers MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -748,7 +1457,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="JMXStartStopAdvice$AspectBinding MCBean">
+ <service name="jmx-classloader:0.0.0$MODULE MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -756,7 +1465,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="bootstrap-classloader:0.0.0 MCBean">
+ <service name="profile-classloader:0.0.0$MODULE MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -764,7 +1473,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ProfileRepositoryFactory MCBean">
+ <service name="ProfileServiceDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -772,7 +1481,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="profile-classloader:0.0.0$MODULE MCBean">
+ <service name="deployers-classloader:0.0.0 MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -780,7 +1489,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ServiceMetaDataICF MCBean">
+ <service name="FileStructure MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -788,7 +1497,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="KernelDeploymentDeployer MCBean">
+ <service name="BeanMetaDataDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -796,7 +1505,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="StructuralDeployers MCBean">
+ <service name="ServiceClassLoaderDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -804,7 +1513,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ComponentMapperRegistry MCBean">
+ <service name="ManagedObjectCreator MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -812,7 +1521,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ClassLoadingMetaDataParser MCBean">
+ <service name="AOPClassLoaderScopingPolicy MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -820,7 +1529,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ServiceClassLoaderDeployer MCBean">
+ <service name="JMXKernel MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -828,7 +1537,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="AOPClassLoaderDeployer MCBean">
+ <service name="KernelDeploymentComponentMapper MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -836,7 +1545,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="JMXCreateDestroyAdvice$AspectBinding MCBean">
+ <service name="AspectManager MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -844,7 +1553,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="JMXStartStopAdvice MCBean">
+ <service name="StructureModCache MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -852,7 +1561,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="MainDeployer MCBean">
+ <service name="MetaDataStructureModificationChecker MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -860,7 +1569,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="DefaultDeploymentRepositoryFactory MCBean">
+ <service name="ProfileFactory MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -868,12 +1577,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ManagementView MCBean">
- <resource-configuration>
- <c:simple-property required="false" name="state" description="The bean controller state"/>
- </resource-configuration>
- </service>
- <service name="AOPJBossIntegration MCBean">
+ <service name="ComponentMapperRegistry MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -881,7 +1585,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="BeanMetaDataDeployer MCBean">
+ <service name="BeanDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -889,7 +1593,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="Deployers MCBean">
+ <service name="KernelDeploymentDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -897,7 +1601,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ClassLoadingDefaultDeployer MCBean">
+ <service name="MainDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -905,7 +1609,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="SARDeployer MCBean">
+ <service name="JMXRegistrationAdvice$AspectBinding MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -913,7 +1617,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ServiceDeploymentComponentMapper MCBean">
+ <service name="PersistenceFactory MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -921,7 +1625,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="StructureModCache MCBean">
+ <service name="ServiceDeploymentDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -929,7 +1633,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="FileStructure MCBean">
+ <service name="InMemoryClassesDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -937,7 +1641,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="DeclaredStructure MCBean">
+ <service name="ManagedDeploymentCreator MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -945,7 +1649,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="AttachmentStore MCBean">
+ <service name="ModificationTypeStructureProcessor MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -953,7 +1657,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ProfileServiceDeployer MCBean">
+ <service name="StructureModificationChecker MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -961,7 +1665,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="AOPXMLMetaDataParserDeployer MCBean">
+ <service name="ClassLoading MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -969,7 +1673,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="AOPDeploymentAopMetaDataDeployer MCBean">
+ <service name="BootstrapProfileFactory MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -977,7 +1681,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="StructureBuilder MCBean">
+ <service name="ProfileServicePersistenceDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -985,7 +1689,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="JMXCreateDestroyAdvice MCBean">
+ <service name="deployers-classloader:0.0.0$MODULE MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -993,7 +1697,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ServiceDeployer MCBean">
+ <service name="JARStructureCandidates MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1001,7 +1705,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="JMXRegistrationAdvice MCBean">
+ <service name="AspectManagerJMXRegistrar MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1009,7 +1713,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="AspectManager MCBean">
+ <service name="KernelDeploymentManagedObjectCreator MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1017,7 +1721,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="SynchAdapter MCBean">
+ <service name="AOPClassLoaderDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1025,7 +1729,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="BeanDeployer MCBean">
+ <service name="StructureBuilder MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1033,7 +1737,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="AOPClassPoolFactory MCBean">
+ <service name="DefaultProfileKey MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1041,7 +1745,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="deployers-classloader:0.0.0$MODULE MCBean">
+ <service name="JARStructure MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1049,7 +1753,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ClassLoaderClassPathDeployer MCBean">
+ <service name="profile-classloader:0.0.0 MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1057,7 +1761,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ProfileService MCBean">
+ <service name="DeploymentFilter MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1065,7 +1769,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ManagedObjectCreator MCBean">
+ <service name="JMXCreateDestroyAdvice$AspectBinding MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1073,7 +1777,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="BasicProfileFactory MCBean">
+ <service name="ClassLoaderDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1081,7 +1785,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="jmx-classloader:0.0.0 MCBean">
+ <service name="JARFilter MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1089,7 +1793,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="BeanMetaDataICF MCBean">
+ <service name="MetaDataStructureModificationChecker$filter#1 MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1097,7 +1801,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ModificationTypeStructureProcessor MCBean">
+ <service name="ProfileRepositoryFactory MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1105,7 +1809,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="InMemoryClassesDeployer MCBean">
+ <service name="JMXCreateDestroyAdvice MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1113,7 +1817,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="DefaultAspectManager MCBean">
+ <service name="AOPXMLMetaDataParserDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1121,7 +1825,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="JARStructure MCBean">
+ <service name="AOPJBossIntegration MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1129,7 +1833,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ProfileFactory MCBean">
+ <service name="JMXRegistrationAdvice MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1137,7 +1841,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="DeploymentFilter MCBean">
+ <service name="AOPRegisterModuleCallback MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1145,7 +1849,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="AOPAnnotationMetaDataParserDeployer MCBean">
+ <service name="AOPClassPoolFactory MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1153,7 +1857,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="JARFilter MCBean">
+ <service name="ProfileServiceBootstrap MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1161,7 +1865,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="PersistenceFactory MCBean">
+ <service name="ServiceDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1169,7 +1873,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="DefaultProfileKey MCBean">
+ <service name="JMXStartStopAdvice MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1177,7 +1881,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="MetaDataStructureModificationChecker$filter#1 MCBean">
+ <service name="WebVisitorAttributes MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1185,7 +1889,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="MetaDataStructureModificationChecker MCBean">
+ <service name="aop-classloader:0.0.0 MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1193,7 +1897,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="StructureModificationChecker MCBean">
+ <service name="SynchAdapter MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1201,7 +1905,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="WebVisitorAttributes MCBean">
+ <service name="ServiceDeploymentComponentMapper MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1209,7 +1913,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="AspectManagerJMXRegistrar MCBean">
+ <service name="AOPDeploymentAopMetaDataDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1217,7 +1921,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="jmx-classloader:0.0.0$MODULE MCBean">
+ <service name="ClassLoadingMetaDataParser MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1225,7 +1929,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="BootstrapProfileFactory MCBean">
+ <service name="FilteredProfileFactory MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1233,7 +1937,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="FilteredProfileFactory MCBean">
+ <service name="ClassLoaderDescribeDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1241,7 +1945,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="AOPRegisterModuleCallback MCBean">
+ <service name="BeansDeploymentAopMetaDataDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1249,7 +1953,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ManagedDeploymentCreator MCBean">
+ <service name="SARDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1257,7 +1961,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="JMXRegistrationAdvice$AspectBinding MCBean">
+ <service name="AttachmentStore MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1265,7 +1969,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="AttachmentsSerializer MCBean">
+ <service name="AOPAnnotationMetaDataParserDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1273,7 +1977,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="aop-classloader:0.0.0 MCBean">
+ <service name="ClassLoaderClassPathDeployer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1281,7 +1985,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="BeansDeploymentAopMetaDataDeployer MCBean">
+ <service name="DefaultAspectManager MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1289,7 +1993,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ProfileServicePersistenceDeployer MCBean">
+ <service name="ServiceMetaDataICF MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1297,7 +2001,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ClassLoading MCBean">
+ <service name="AttachmentsSerializer MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1305,7 +2009,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ProfileServiceBootstrap MCBean">
+ <service name="BasicProfileFactory MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1313,7 +2017,7 @@
</c:list-property>
</resource-configuration>
</service>
- <service name="ClassLoaderDescribeDeployer MCBean">
+ <service name="Deployers MCBean">
<metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="properties">
@@ -1508,6 +2212,7 @@
<c:simple-property required="false" name="ref"/>
<c:simple-property required="false" name="userInfo"/>
</c:map-property>
+ <c:simple-property required="false" readOnly="true" name="partitionName" description="The name of the clustering partition"/>
</c:map-property>
<c:simple-property required="false" readOnly="true" name="startDate" description="The server start time"/>
<c:simple-property required="false" readOnly="true" name="version" description="The server version string"/>
@@ -1516,31 +2221,104 @@
</resource-configuration>
</service>
<service name="Security MCBean">
- <operation name="createSubject" displayName="Create Subject" description="Create a subject using the modules configured in the specified security domain">
+ <operation name="addApplicationPolicy" displayName="Add Application Policy" description="Add an application policy for the specified domain">
<parameters>
- <c:simple-property required="false" name="securityDomainName" description="The security domain name"/>
+ <c:simple-property required="false" name="arg#0"/>
+ <c:map-property required="false" name="arg#1">
+ <c:simple-property required="false" name="baseApplicationPolicyName"/>
+ <c:simple-property required="false" name="name"/>
+ </c:map-property>
</parameters>
+ </operation>
+ <operation name="displayAppConfig" displayName="Display App Config" description="Display the configuration for the specified domain">
+ <parameters>
+ <c:simple-property required="false" name="arg#0"/>
+ </parameters>
<results>
- <c:notes>Create a subject using the modules configured in the specified security domain</c:notes>
+ <c:notes>Display the configuration for the specified domain</c:notes>
+ <c:simple-property required="false" name="result"/>
+ </results>
+ </operation>
+ <operation name="getApplicationPolicy" displayName="Get Application Policy" description="Get the application policy for the specified domain">
+ <parameters>
+ <c:simple-property required="false" name="arg#0"/>
+ </parameters>
+ <results>
+ <c:notes>Get the application policy for the specified domain</c:notes>
<c:map-property required="false" name="result">
- <c:list-property name="principals">
- <c:map-property required="false" name="element">
- <c:simple-property required="false" name="name"/>
- </c:map-property>
- </c:list-property>
- <c:list-property name="privateCredentials">
- <c:map-property required="false" name="element"/>
- </c:list-property>
- <c:list-property name="publicCredentials">
- <c:map-property required="false" name="element"/>
- </c:list-property>
- <c:simple-property type="boolean" required="false" name="readOnly"/>
+ <c:simple-property required="false" name="baseApplicationPolicyName"/>
+ <c:simple-property required="false" name="name"/>
</c:map-property>
</results>
</operation>
+ <operation name="getConfiguration" displayName="Get Configuration" description="Get the javax.security.auth.login.Configuration instance">
+ <parameters>
+ <c:map-property required="false" name="arg#0">
+ <c:map-property required="false" name="provider">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ <c:simple-property required="false" name="type"/>
+ </c:map-property>
+ </parameters>
+ <results>
+ <c:notes>Get the javax.security.auth.login.Configuration instance</c:notes>
+ <c:map-property required="false" name="result">
+ <c:map-property required="false" name="provider">
+ <c:map-property required="false" name="key"/>
+ </c:map-property>
+ <c:simple-property required="false" name="type"/>
+ </c:map-property>
+ </results>
+ </operation>
+ <operation name="loadConfig" displayName="Load Config" description="Load (parse) the login config file">
+ <parameters>
+ <c:map-property required="false" name="arg#0">
+ <c:simple-property required="false" name="authority"/>
+ <c:simple-property type="integer" required="false" name="defaultPort"/>
+ <c:simple-property required="false" name="file"/>
+ <c:simple-property required="false" name="host"/>
+ <c:simple-property required="false" name="path"/>
+ <c:simple-property type="integer" required="false" name="port"/>
+ <c:simple-property required="false" name="protocol"/>
+ <c:simple-property required="false" name="query"/>
+ <c:simple-property required="false" name="ref"/>
+ <c:simple-property required="false" name="userInfo"/>
+ </c:map-property>
+ </parameters>
+ <results>
+ <c:notes>Load (parse) the login config file</c:notes>
+ <c:list-property name="result">
+ <c:simple-property required="false" name="element"/>
+ </c:list-property>
+ </results>
+ </operation>
+ <operation name="removeConfigs" displayName="Remove Configs" description="Remove the configuration of the specified domains">
+ <parameters>
+ <c:list-property name="arg#0">
+ <c:simple-property required="false" name="element"/>
+ </c:list-property>
+ </parameters>
+ </operation>
+ <operation name="setConfigResource" displayName="Set Config Resource" description="Set the resource name of the login config file">
+ <parameters>
+ <c:simple-property required="false" name="arg#0"/>
+ </parameters>
+ </operation>
<resource-configuration>
- <c:map-property required="false" name="securityManagement"/>
+ <c:map-property required="false" name="configURL" description="The URL of the login configuration file">
+ <c:simple-property required="false" name="authority"/>
+ <c:simple-property type="integer" required="false" name="defaultPort"/>
+ <c:simple-property required="false" name="file"/>
+ <c:simple-property required="false" name="host"/>
+ <c:simple-property required="false" name="path"/>
+ <c:simple-property type="integer" required="false" name="port"/>
+ <c:simple-property required="false" name="protocol"/>
+ <c:simple-property required="false" name="query"/>
+ <c:simple-property required="false" name="ref"/>
+ <c:simple-property required="false" name="userInfo"/>
+ </c:map-property>
<c:simple-property required="false" name="state" description="The bean controller state"/>
+ <c:simple-property type="boolean" required="false" name="validateDTD" description="Validate or not the login configuration file"/>
</resource-configuration>
</service>
<service name="ServerConfig MCBean">
@@ -1635,6 +2413,9 @@
<metric property="serverTempDeployDir" displayType="summary" displayName="Server Temp Deploy Dir" description="the temporary deployment dir" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<metric property="serverTempDir" displayType="summary" displayName="Server Temp Dir" description="the directory where temporary files will be stored" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<metric property="specificationVersion" displayType="summary" displayName="Specification Version" description="the server Specification-Version" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <resource-configuration>
+ <c:simple-property required="false" readOnly="true" name="partitionName" description="The name of the clustering partition"/>
+ </resource-configuration>
</service>
<service name="ServerInfo MCBean">
<operation name="listMemoryPools" displayName="List Memory Pools" description="Return a listing of the thread pools on jdk5+">
@@ -1732,11 +2513,16 @@
<c:simple-property required="false" readOnly="true" name="contextRoot"/>
</resource-configuration>
</service>
- <service name="ejb2x">
+ <service name="beans">
+ <metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
- <c:list-property required="false" name="beanFactories">
+ <c:list-property required="false" name="properties">
<c:map-property required="false" name="element"/>
</c:list-property>
+ </resource-configuration>
+ </service>
+ <service name="ear">
+ <resource-configuration>
<c:simple-property type="boolean" required="false" name="blackList"/>
<c:simple-property type="boolean" required="false" name="cache"/>
<c:map-property required="false" name="capabilities">
@@ -1753,9 +2539,6 @@
<c:simple-property required="false" name="name"/>
<c:simple-property required="false" name="parentDomain"/>
<c:simple-property type="boolean" required="false" name="parentFirst"/>
- <c:list-property required="false" name="properties">
- <c:map-property required="false" name="element"/>
- </c:list-property>
<c:map-property required="false" name="requirements">
<c:list-property name="requirements">
<c:map-property required="false" name="element">
@@ -1765,16 +2548,23 @@
</c:map-property>
</c:list-property>
</c:map-property>
- <c:simple-property required="false" name="state" description="The bean controller state"/>
<c:simple-property required="false" name="version"/>
</resource-configuration>
</service>
+ <service name="ejb2x">
+ <resource-configuration>
+ <c:list-property required="false" name="beanFactories">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ </resource-configuration>
+ </service>
<service name="ejb3x">
- <metric property="availableCount" measurementType="dynamic" displayType="detail" displayName="Available Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="createCount" measurementType="dynamic" displayType="detail" displayName="Create Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="currentSize" measurementType="dynamic" displayType="detail" displayName="Current Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="maxSize" measurementType="dynamic" displayType="detail" displayName="Max Size" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
- <metric property="removeCount" measurementType="dynamic" displayType="detail" displayName="Remove Count" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="availableCount" measurementType="dynamic" displayType="detail" displayName="Available Count" description="The number of slots available in the instance pool" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="createCount" measurementType="dynamic" displayType="detail" displayName="Create Count" description="The number of bean instances created" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="currentSize" measurementType="dynamic" displayType="detail" displayName="Current Size" description="The current number of bean instances in the backing pool for this SLSB" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="lastResetTime" measurementType="dynamic" displayType="detail" displayName="Last Reset Time" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="maxSize" measurementType="dynamic" displayType="detail" displayName="Max Size" description="The maxmimum size of the backing instance pool" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="removeCount" measurementType="dynamic" displayType="detail" displayName="Remove Count" description="The number of backing SLSB instances which have been removed" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<resource-configuration>
<c:list-property required="false" name="beanFactories">
<c:map-property required="false" name="element"/>
@@ -1811,9 +2601,17 @@
<c:simple-property required="false" name="version"/>
</resource-configuration>
</service>
- <service name="war">
- <metric property="contextRoot" displayType="summary" displayName="Context Root" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <service name="par">
+ <metric property="availableCount" measurementType="dynamic" displayType="detail" displayName="Available Count" description="The number of slots available in the instance pool" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="createCount" measurementType="dynamic" displayType="detail" displayName="Create Count" description="The number of bean instances created" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="currentSize" measurementType="dynamic" displayType="detail" displayName="Current Size" description="The current number of bean instances in the backing pool for this SLSB" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="lastResetTime" measurementType="dynamic" displayType="detail" displayName="Last Reset Time" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="maxSize" measurementType="dynamic" displayType="detail" displayName="Max Size" description="The maxmimum size of the backing instance pool" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
+ <metric property="removeCount" measurementType="dynamic" displayType="detail" displayName="Remove Count" description="The number of backing SLSB instances which have been removed" defaultOn="true" defaultInterval="60000" dataType="measurement" category="performance"/>
<resource-configuration>
+ <c:list-property required="false" name="beanFactories">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
<c:simple-property type="boolean" required="false" name="blackList"/>
<c:simple-property type="boolean" required="false" name="cache"/>
<c:map-property required="false" name="capabilities">
@@ -1821,7 +2619,6 @@
<c:map-property required="false" name="element"/>
</c:list-property>
</c:map-property>
- <c:simple-property required="false" readOnly="true" name="contextRoot"/>
<c:simple-property required="false" name="domain"/>
<c:simple-property required="false" name="excluded"/>
<c:simple-property required="false" name="excludedExport"/>
@@ -1831,6 +2628,9 @@
<c:simple-property required="false" name="name"/>
<c:simple-property required="false" name="parentDomain"/>
<c:simple-property type="boolean" required="false" name="parentFirst"/>
+ <c:list-property required="false" name="properties">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
<c:map-property required="false" name="requirements">
<c:list-property name="requirements">
<c:map-property required="false" name="element">
@@ -1840,6 +2640,7 @@
</c:map-property>
</c:list-property>
</c:map-property>
+ <c:simple-property required="false" name="state" description="The bean controller state"/>
<c:simple-property required="false" name="version"/>
</resource-configuration>
</service>
@@ -1950,12 +2751,36 @@
<c:simple-property required="false" name="version"/>
</resource-configuration>
</service>
- <service name="beans">
- <metric property="state" displayType="summary" displayName="State" description="The bean controller state" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
+ <service name="war">
+ <metric property="contextRoot" displayType="summary" displayName="Context Root" defaultOn="true" defaultInterval="600000" dataType="trait" category="performance"/>
<resource-configuration>
- <c:list-property required="false" name="properties">
- <c:map-property required="false" name="element"/>
- </c:list-property>
+ <c:simple-property type="boolean" required="false" name="blackList"/>
+ <c:simple-property type="boolean" required="false" name="cache"/>
+ <c:map-property required="false" name="capabilities">
+ <c:list-property name="capabilities">
+ <c:map-property required="false" name="element"/>
+ </c:list-property>
+ </c:map-property>
+ <c:simple-property required="false" readOnly="true" name="contextRoot"/>
+ <c:simple-property required="false" name="domain"/>
+ <c:simple-property required="false" name="excluded"/>
+ <c:simple-property required="false" name="excludedExport"/>
+ <c:simple-property required="false" name="exportAll"/>
+ <c:simple-property type="boolean" required="false" name="importAll"/>
+ <c:simple-property required="false" name="included"/>
+ <c:simple-property required="false" name="name"/>
+ <c:simple-property required="false" name="parentDomain"/>
+ <c:simple-property type="boolean" required="false" name="parentFirst"/>
+ <c:map-property required="false" name="requirements">
+ <c:list-property name="requirements">
+ <c:map-property required="false" name="element">
+ <c:simple-property type="boolean" required="false" name="dynamic"/>
+ <c:simple-property type="boolean" required="false" name="optional"/>
+ <c:simple-property type="boolean" required="false" name="reExport"/>
+ </c:map-property>
+ </c:list-property>
+ </c:map-property>
+ <c:simple-property required="false" name="version"/>
</resource-configuration>
</service>
</plugin>
15 years, 6 months
EMBJOPR SVN: r519 - in trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit: as5 and 3 other directories.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-06-11 13:46:50 -0400 (Thu, 11 Jun 2009)
New Revision: 519
Added:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/AppConstants.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java
Log:
ScriptTest added.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/AppConstants.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/AppConstants.java 2009-06-11 16:16:17 UTC (rev 518)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/AppConstants.java 2009-06-11 17:46:50 UTC (rev 519)
@@ -120,6 +120,7 @@
public static final String NAV_EMB_WAR = "Embedded WARs";
public static final String NAV_EMB_RAR = "Embedded RARs";
+
public static final String EAR_MALFORMED_APP_FILENAME = "malformed-application-xml.ear";
public static final String EAR_MALFORMED_APP_FILENAME_2 = "malformed-application-xml-2.ear";
public static final String EAR_NOT_MALFORMED_APP_FILENAME = "not-malformed-application-xml.ear";
@@ -184,17 +185,20 @@
public static final String WAR_VIRTUAL_HOSTS = "vhosts-test.war";
- // Virtual Ghosts
+ // RAR
+ public static final String BASIC_RAR = "jbosstestadapter.rar";
+
+
+
+ // Resource constants
+ public static final String NAV_SCRIPTS = "Scripts";
public static final String NAV_JBOSS_WEB = "JBoss Web";
- public static final String NAV_CONNECTORS = "Connectors";
- public static final String NAV_VIRTUAL_HOSTS = "Virtual Hosts";
+ public static final String NAV_CONNECTORS = "Connectors";
+ public static final String NAV_VIRTUAL_HOSTS = "Virtual Hosts";
- // RAR
- public static final String BASIC_RAR = "jbosstestadapter.rar";
-
// Defaults
public static final String[] WAR_DEFAULTS = new String[]{
"ROOT.war", "invoker.war",
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java 2009-06-11 16:16:17 UTC (rev 518)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java 2009-06-11 17:46:50 UTC (rev 519)
@@ -26,7 +26,6 @@
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;
import com.gargoylesoftware.htmlunit.WebClient;
-import com.gargoylesoftware.htmlunit.WebRequestSettings;
import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.*;
import org.jboss.jopr.jsfunit.*;
@@ -34,17 +33,10 @@
import java.io.*;
import java.net.InetAddress;
import java.net.Socket;
-import java.net.URL;
import java.util.Properties;
import javax.faces.application.FacesMessage;
import junit.framework.Test;
import junit.framework.TestSuite;
-import org.apache.commons.httpclient.HttpClient;
-import org.apache.commons.httpclient.HttpConnection;
-import org.apache.commons.httpclient.HttpConnectionManager;
-import org.apache.commons.httpclient.SimpleHttpConnectionManager;
-import org.apache.commons.httpclient.params.HttpClientParams;
-import org.apache.commons.httpclient.protocol.Protocol;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils;
Added: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java (rev 0)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java 2009-06-11 17:46:50 UTC (rev 519)
@@ -0,0 +1,159 @@
+package org.jboss.jopr.jsfunit.as5.scripts;
+
+import com.gargoylesoftware.htmlunit.Page;
+import com.gargoylesoftware.htmlunit.html.HtmlDivision;
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.jboss.jopr.jsfunit.ApplicationTestBaseAS5;
+import org.jboss.jopr.jsfunit.exceptions.EmbJoprTestException;
+import org.jboss.jopr.jsfunit.util.ActiveConditionChecker;
+import org.jboss.jopr.jsfunit.util.DescribedCondition;
+import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.ContentTable;
+import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.ContentTableRow;
+import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.NavTreeNode;
+import org.jboss.util.file.FilenameSuffixFilter;
+
+/**
+ *
+ * @author ondra
+ */
+public class ScriptsTest extends ApplicationTestBaseAS5 {
+
+ //public static final DeployableTypes APP_TYPE = DeployableTypes.EMB_WAR;
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite(){
+ return new TestSuite(ScriptsTest.class);
+ }
+
+
+ /**
+ * Tests whether the scripts node exists and that all the scripts are listed.
+ */
+ public void testScriptsListingTest() throws IOException, EmbJoprTestException {
+
+ ejtt.navTree.getNodeByLabel(NAV_SCRIPTS).click();
+ ContentTable scriptsListingTable = ejtt.tabMenu.getTabContentBox().getFirstTable();
+
+ // Go through the dir, and check whether each *.sh file is listed in the page.
+ File binDir = new File(ejtt.getJBossHomeDir());
+ if( !binDir.isDirectory() )
+ throw new EmbJoprTestException(binDir.getAbsolutePath()+" is not a directory.");
+
+ // Get the list of .sh files in the <JBOSS_HOME>/bin dir.
+ File scriptFiles[] = binDir.listFiles(new FilenameSuffixFilter(".sh"));
+
+ /*
+ List<String> notListedScripts = new ArrayList();
+
+ for( File file : scriptFiles ) {
+ // Go to the scripts node.
+ ejtt.navTree.getNodeByLabel(NAV_SCRIPTS).click();
+
+ // Check whether the script is listed (on any page).
+ ContentTableRow row = ejtt.getTabMenu().getTabContentBox().findLinkRowInDataTableUsingPagination(file.getName());
+ if( null == row )
+ notListedScripts.add("");
+ }
+ /*/
+
+ // Faster method.
+ List<String> notListedScripts = new ArrayList();
+ for( File file : scriptFiles ) {
+ notListedScripts.add(file.getName());
+ }
+
+ // Go to the scripts node.
+ ejtt.navTree.getNodeByLabel(NAV_SCRIPTS).click();
+
+ int curPage = 1;
+
+ do {
+
+ log.info("Scanning scripts listing, page "+curPage);
+
+ // Remove all scripts listed on this page from the not-listed list.
+ ContentTable scriptListingTable = ejtt.getTabMenu().getTabContentBox().getDefaultTable();
+ for( ContentTableRow row : scriptListingTable.getRows() ) {
+ String scriptName = row.getCell(0).getTextContent();
+ notListedScripts.remove(scriptName);
+ }
+ // Go to the next page. If there's no next page, quit the loop.
+ Page originalPage = ejtt.getClient().getContentPage();
+ boolean wentNext = ejtt.getTabMenu().getTabContentBox().getPagination().goNext();
+ if( !wentNext )
+ break;
+ if( originalPage.equals( ejtt.getClient().getContentPage() ) )
+ break;
+
+ } while( true );
+ /**/
+
+
+ // If some of the scripts from the <JBOSS_HOME>/bin directory are not listed, throw.
+ if( 0 < notListedScripts.size() ){
+ throw new EmbJoprTestException("Following <JBOSS_HOME>/bin/*.sh files are not listed: "+notListedScripts.toArray( new String[0] ) );
+ }
+
+ }
+
+
+
+ /**
+ * Adds a test script to the /bin directory and checks that it appears in the Scripts listing.
+ */
+ public void testScriptsAddNewShFileTest() throws IOException, EmbJoprTestException {
+
+ final String SCRIPT_FILE_NAME = "embjopr-test.sh";
+
+ // Create the script in JBOSS_HOME/bin/
+ String shFilePath = ejtt.getJBossHomeDir()+"/"+SCRIPT_FILE_NAME;
+ final File file = new File(shFilePath);
+
+ try {
+
+ if( file.exists() ){
+ log.warn(shFilePath+" already exists, thus is already visible in EmbJopr.");
+ }
+ new FileWriter(shFilePath, false).append("echo 'Test script.'").close();
+
+
+ // Wait for the script to appear.
+ try {
+ new ActiveConditionChecker(new DescribedCondition("Script "+SCRIPT_FILE_NAME+" appears in Scripts listing") {
+ int count = 0;
+ public boolean isTrue() throws Exception {
+ ejtt.navTree.getNodeByLabel(NAV_SCRIPTS).click();
+ return null == ejtt.tabMenu.getTabContentBox().getFirstTable().findFirstRowContainingLink(SCRIPT_FILE_NAME);
+ }
+ }).throwOnTimeout().dumpPageOnTimeout(this).waitWithTimeout(3000, 20);
+ }
+ catch( EmbJoprTestException ex ){
+ throw ex;
+ }
+ catch( Exception ex ){
+ throw new EmbJoprTestException( ex.getMessage(), ex );
+ }
+ }
+ finally {
+ // Delete the test script file if it exists.
+ if( file.exists() )
+ file.delete();
+ }
+
+
+ }
+
+
+
+}// class
+
+
+
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java 2009-06-11 16:16:17 UTC (rev 518)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java 2009-06-11 17:46:50 UTC (rev 519)
@@ -7,7 +7,6 @@
import java.net.UnknownHostException;
import java.util.*;
-import java.util.logging.Level;
import org.jboss.jopr.jsfunit.exceptions.*;
import com.gargoylesoftware.htmlunit.html.*;
import com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine;
@@ -18,9 +17,7 @@
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
-import java.net.Inet4Address;
import java.net.InetAddress;
-import java.net.InetSocketAddress;
import java.net.URL;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
@@ -114,6 +111,10 @@
return System.getProperty(AppConstants.SYSPROP_JBOSS_CONFIG);
}
+ /**
+ * @returns the directory in wich the AS instance for cargo is located.
+ * THIS IS NOT WHERE THE AS CONFIG DIR (with deploy/ etc.) ARE.
+ */
public String getJBossHomeDir() {
return System.getProperty(AppConstants.SYSPROP_CARGO_JBOSS_HOME_DIR);
}
@@ -815,6 +816,8 @@
/**
* Tries to find a data table row with given deployable, using pagination if needed.
* @returns The row wrapper if found, or null.
+ *
+ * TODO: Get to the first page at the beginning.
*/
public ContentTableRow findLinkRowInDataTableUsingPagination(String label)
throws HtmlElementNotFoundException, IOException
@@ -1337,8 +1340,9 @@
*
* TODO: May throw IndexOutOfBoundsException - leave unchecked?
*
- * @param index
- * @return
+ * @param index the 0-based index
+ * @return the cell at the given index
+ * @throws IndexOutOfBoundsException if there is no cell at the given index
*/
public HtmlTableCell getCell( int index ){
HtmlTableCell cell = this.element.getCell(index);
@@ -1461,9 +1465,14 @@
return !"".equals( ((HtmlTableCell)goSpan.getParentNode()).getOnClickAttribute() );
}
+ /** Clicks the "Next" link of the pagination controls.
+ * @returns true if the "Next" link will not bring us to a new page (has no onClick handler).
+ */
public boolean goNext() throws IOException, HtmlElementNotFoundException{
+ //Page originalPage = client.getContentPage();
HtmlSpan goSpan = getGoSpan("Next");
goSpan.click();
+ //originalPage.equals( ejtt.getClient().getContentPage() )
return !"".equals( ((HtmlTableCell)goSpan.getParentNode()).getOnClickAttribute() );
}
15 years, 6 months
EMBJOPR SVN: r518 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-06-11 12:16:17 -0400 (Thu, 11 Jun 2009)
New Revision: 518
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/HelloJoprTest.java
Log:
HelloJoprTest updated to handle paginated apps list.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/HelloJoprTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/HelloJoprTest.java 2009-06-11 15:53:00 UTC (rev 517)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/HelloJoprTest.java 2009-06-11 16:16:17 UTC (rev 518)
@@ -19,7 +19,6 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
-
package org.jboss.jopr.jsfunit;
import com.gargoylesoftware.htmlunit.BrowserVersion;
@@ -41,6 +40,7 @@
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.cactus.ServletTestCase;
+import org.jboss.jopr.jsfunit.exceptions.EmbJoprTestException;
import org.jboss.jopr.jsfunit.exceptions.HtmlElementNotFoundException;
import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit;
import org.jboss.jsfunit.framework.WebClientSpec;
@@ -55,186 +55,186 @@
*
* @author Stan Silvert
*/
-public class HelloJoprTest extends ServletTestCase
-{
- private boolean isJBoss4;
+public class HelloJoprTest extends ServletTestCase {
- private JSFClientSession client;
- private JSFServerSession server;
-
- /**
- * Start a JSFUnit session by logging in to the main page. Note that
- * because setUp() is called before each test, a new HttpSession will be
- * created each time a test is run.
- */
- public void setUp() throws IOException
- {
- isJBoss4 = Package.getPackage("org.jboss.system.server")
- .getImplementationVersion()
- .startsWith("4");
-
- // Initial JSF request
- WebClientSpec wcSpec = new WebClientSpec("/", BrowserVersion.FIREFOX_3);
-
- // This is temporary because embedded Jopr can't find /js/rhq.js
- wcSpec.getWebClient().setThrowExceptionOnFailingStatusCode(false);
-
- // Always press OK for confirm dialogs
- wcSpec.getWebClient().setConfirmHandler(new SimpleConfirmHandler(true));
-
- wcSpec.setInitialRequestStrategy(new JoprLoginStrategy()); // logs in
-
- JSFSession jsfSession = new JSFSession(wcSpec);
- this.client = jsfSession.getJSFClientSession();
- this.server = jsfSession.getJSFServerSession();
- }
-
- /**
- * @return the suite of tests being tested
- */
- public static Test suite()
- {
- return new TestSuite( HelloJoprTest.class );
- }
-
- public void testDeployWAR() throws IOException, HtmlElementNotFoundException
- {
+
+ private boolean isJBoss4;
+ private JSFClientSession client;
+ private JSFServerSession server;
- EmbJoprTestToolkit ejtt = new EmbJoprTestToolkit(client, server);
- // Click the nav tree.
- String linkLabel = "WARs";
- //HtmlAnchor warLink = getNavTreeLink(linkLabel);
- HtmlAnchor warLink = ejtt.navTree.getNodeLink(linkLabel);
- warLink.click();
-
- // click on the "Add new resource" button
- DebugUtils.writeFile("target/testDeployWAR-beforeAdd.html", client.getPageAsText());///
- client.click("actionHeaderForm:addNewContent"); // 404 if setThrowExceptionOnFailingStatusCode(true) above
-
- // upload hellothere.war
- HtmlFileInput fileInput = (HtmlFileInput)client.getElement("createContentForm:file");
- fileInput.setContentType("application/war");
- fileInput.setValueAttribute(System.getProperty("jsfunit.testdata") + "/war/hellothere.war");
- client.click("createContentForm:addButton");
-
- // assert that the success message appeared on the client side
- assertTrue(client.getPageAsText().contains("hellothere.war created successfully"));
-
- // assert text and sevrity level for FacesMessage on server side
- assertTrue(server.getFacesMessages().hasNext());
- FacesMessage successMessage = server.getFacesMessages().next();
- assertTrue(FacesMessage.SEVERITY_INFO.equals(successMessage.getSeverity()));
- assertTrue(successMessage.getDetail().contains("hellothere.war created successfully"));
-
- // Use JMX to assert that the WAR really did deploy successfully
- assertTrue(isWarDeployed("hellothere.war"));
-
- // use HtmlUnit to test the newly deployed war in a new WebClient session
- // note that I have full access to the FacesContext and the previous request
- HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
- int port = request.getLocalPort();
- WebClient webClient = new WebClient();
- HtmlPage page = (HtmlPage)webClient.getPage("http://localhost:" + port + "/hellothere/hello.jsp");
- assertTrue(page.asText().contains("HELLO WORLD"));
-
- // Undeploy the WAR
- HtmlButtonInput deleteButton = getDeleteButton("hellothere.war");
- deleteButton.click();
-
- assertFalse(isWarDeployed("hellothere.war"));
- }
-
- private boolean isWarDeployed(String warName)
- {
- if (isJBoss4)
- {
- return checkWarDeployment_4_2(warName);
- }
- else
- {
- return checkWarDeployment_5_0(warName);
- }
- }
-
- // Query the MBean server to find if WAR is deployed
- private boolean checkWarDeployment_4_2(String warName)
- {
- try {
- MBeanServer jmxServer = MBeanServerLocator.locateJBoss();
- ObjectName objName = new ObjectName("jboss.web.deployment:war=" + warName + ",*");
- Set mBeans = jmxServer.queryNames(objName, null);
- if (mBeans.size() != 1) return false;
- ObjectName deploymentMBean = (ObjectName)mBeans.iterator().next();
- String state = (String)jmxServer.getAttribute(deploymentMBean, "StateString");
- return "Started".equals(state);
- }
- catch (Exception e)
- {
- throw new RuntimeException(e);
- }
- }
-
- // Query the MBean server to find if WAR is deployed
- private boolean checkWarDeployment_5_0(String warName)
- {
- if (warName.endsWith(".war"))
- {
- warName = warName.substring(0, warName.lastIndexOf(".war"));
- }
- else
- {
- warName = warName.substring(0, warName.lastIndexOf(".WAR"));
- }
-
- try {
- MBeanServer jmxServer = MBeanServerLocator.locateJBoss();
- ObjectName objName = new ObjectName("jboss.deployment:id=\"jboss.web.deployment:war=/" + warName + "\",*");
- Set mBeans = jmxServer.queryNames(objName, null);
- if (mBeans.size() != 1) return false;
- ObjectName deploymentMBean = (ObjectName)mBeans.iterator().next();
-
- // returns org.jboss.deployers.spi.DeploymentState
- Object state = jmxServer.getAttribute(deploymentMBean, "State");
- return "DEPLOYED".equals(state.toString());
- }
- catch (Exception e)
- {
- throw new RuntimeException(e);
- }
- }
+ /**
+ * Start a JSFUnit session by logging in to the main page. Note that
+ * because setUp() is called before each test, a new HttpSession will be
+ * created each time a test is run.
+ */
+ public void setUp() throws IOException {
+ isJBoss4 = Package.getPackage("org.jboss.system.server").getImplementationVersion().startsWith("4");
- // need a standard JSFUnit API to replace this code
- private HtmlAnchor getNavTreeLink(String linkLabel)
- {
- return getLinkInsideForm("navTreeForm", linkLabel);
- }
-
- private HtmlButtonInput getDeleteButton(String resourceName)
- {
- HtmlAnchor link = getLinkInsideForm("resourceSummaryForm", resourceName);
- // The id will look like "resourceSummaryForm:dataTable:2:resourceName"
- // I need the row number. (2 in the above example)
- String id = link.getIdAttribute();
- String[] idElements = id.split(":");
- String row = idElements[idElements.length - 2];
- return (HtmlButtonInput)client.getElement(row + ":removeButton");
- }
-
- // finds a <a> tag inside a form that has a particular label
- private HtmlAnchor getLinkInsideForm(String formId, String linkLabel)
- {
- HtmlForm form = (HtmlForm)client.getElement(formId);
- List links = form.getByXPath(".//a"); // get all <a> tags inside form
+ // Initial JSF request
+ WebClientSpec wcSpec = new WebClientSpec("/", BrowserVersion.FIREFOX_3);
- for (Iterator i = links.iterator(); i.hasNext();)
- {
- HtmlAnchor link = (HtmlAnchor)i.next();
- String linkText = link.getTextContent();
- if (linkText.contains(linkLabel)) return link;
- }
-
- throw new IllegalStateException("Nav Tree link for '" + linkLabel + "' not found.");
- }
-
-}
+ // This is temporary because embedded Jopr can't find /js/rhq.js
+ wcSpec.getWebClient().setThrowExceptionOnFailingStatusCode(false);
+
+ // Always press OK for confirm dialogs
+ wcSpec.getWebClient().setConfirmHandler(new SimpleConfirmHandler(true));
+
+ wcSpec.setInitialRequestStrategy(new JoprLoginStrategy()); // logs in
+
+ JSFSession jsfSession = new JSFSession(wcSpec);
+ this.client = jsfSession.getJSFClientSession();
+ this.server = jsfSession.getJSFServerSession();
+ }
+
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite() {
+ return new TestSuite(HelloJoprTest.class);
+ }
+
+ public void testDeployWAR() throws IOException, HtmlElementNotFoundException, EmbJoprTestException {
+
+ final String DEPLOYABLE_NAME = "hellothere.war";
+
+ final EmbJoprTestToolkit ejtt = new EmbJoprTestToolkit(client, server);
+
+
+ // Click the nav tree.
+ String linkLabel = "WARs";
+ //HtmlAnchor warLink = getNavTreeLink(linkLabel);
+ HtmlAnchor warLink = ejtt.navTree.getNodeLink(linkLabel);
+ warLink.click();
+
+ // click on the "Add new resource" button
+ DebugUtils.writeFile("target/testDeployWAR-beforeAdd.html", client.getPageAsText());///
+ client.click("actionHeaderForm:addNewContent"); // 404 if setThrowExceptionOnFailingStatusCode(true) above
+
+ // upload hellothere.war
+ HtmlFileInput fileInput = (HtmlFileInput) client.getElement("createContentForm:file");
+ fileInput.setContentType("application/war");
+ fileInput.setValueAttribute(System.getProperty("jsfunit.testdata") + "/war/hellothere.war");
+ client.click("createContentForm:addButton");
+
+ // assert that the success message appeared on the client side
+ assertTrue(client.getPageAsText().contains("hellothere.war created successfully"));
+
+ // assert text and sevrity level for FacesMessage on server side
+ assertTrue(server.getFacesMessages().hasNext());
+ FacesMessage successMessage = server.getFacesMessages().next();
+ assertTrue(FacesMessage.SEVERITY_INFO.equals(successMessage.getSeverity()));
+ assertTrue(successMessage.getDetail().contains("hellothere.war created successfully"));
+
+ // Use JMX to assert that the WAR really did deploy successfully
+ assertTrue(isWarDeployed(DEPLOYABLE_NAME));
+
+ // use HtmlUnit to test the newly deployed war in a new WebClient session
+ // note that I have full access to the FacesContext and the previous request
+ HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
+ int port = request.getLocalPort();
+ WebClient webClient = new WebClient();
+ HtmlPage page = (HtmlPage) webClient.getPage("http://localhost:" + port + "/hellothere/hello.jsp");
+ assertTrue(page.asText().contains("HELLO WORLD"));
+
+ /* Doesn't work when the WAR is not on first page of listing.
+ // Undeploy the WAR
+ HtmlButtonInput deleteButton = getDeleteButton(DEPLOYABLE_NAME);
+ deleteButton.click();*/
+
+ ejtt.deployment.undeployViaEmbJopr(AppConstants.DeployableTypes.WAR, DEPLOYABLE_NAME);
+
+ assertFalse(isWarDeployed(DEPLOYABLE_NAME));
+ }
+
+
+
+ private boolean isWarDeployed(String warName) {
+ if (isJBoss4) {
+ return checkWarDeployment_4_2(warName);
+ } else {
+ return checkWarDeployment_5_0(warName);
+ }
+ }
+
+
+ /** Query the MBean server to find if WAR is deployed. */
+ private boolean checkWarDeployment_4_2(String warName) {
+ try {
+ MBeanServer jmxServer = MBeanServerLocator.locateJBoss();
+ ObjectName objName = new ObjectName("jboss.web.deployment:war=" + warName + ",*");
+ Set mBeans = jmxServer.queryNames(objName, null);
+ if (mBeans.size() != 1) {
+ return false;
+ }
+ ObjectName deploymentMBean = (ObjectName) mBeans.iterator().next();
+ String state = (String) jmxServer.getAttribute(deploymentMBean, "StateString");
+ return "Started".equals(state);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+
+ /** Query the MBean server to find if WAR is deployed. */
+ private boolean checkWarDeployment_5_0(String warName) {
+ if (warName.endsWith(".war")) {
+ warName = warName.substring(0, warName.lastIndexOf(".war"));
+ } else {
+ warName = warName.substring(0, warName.lastIndexOf(".WAR"));
+ }
+
+ try {
+ MBeanServer jmxServer = MBeanServerLocator.locateJBoss();
+ ObjectName objName = new ObjectName("jboss.deployment:id=\"jboss.web.deployment:war=/" + warName + "\",*");
+ Set mBeans = jmxServer.queryNames(objName, null);
+ if (mBeans.size() != 1) {
+ return false;
+ }
+ ObjectName deploymentMBean = (ObjectName) mBeans.iterator().next();
+
+ // returns org.jboss.deployers.spi.DeploymentState
+ Object state = jmxServer.getAttribute(deploymentMBean, "State");
+ return "DEPLOYED".equals(state.toString());
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+
+ // need a standard JSFUnit API to replace this code
+ private HtmlAnchor getNavTreeLink(String linkLabel) {
+ return getLinkInsideForm("navTreeForm", linkLabel);
+ }
+
+
+ private HtmlButtonInput getDeleteButton(String resourceName) {
+ HtmlAnchor link = getLinkInsideForm("resourceSummaryForm", resourceName);
+ // The id will look like "resourceSummaryForm:dataTable:2:resourceName"
+ // I need the row number. (2 in the above example)
+ String id = link.getIdAttribute();
+ String[] idElements = id.split(":");
+ String row = idElements[idElements.length - 2];
+ return (HtmlButtonInput) client.getElement(row + ":removeButton");
+ }
+
+
+ /** Finds a <a> tag inside a form that has a particular label. */
+ private HtmlAnchor getLinkInsideForm(String formId, String linkLabel) {
+ HtmlForm form = (HtmlForm) client.getElement(formId);
+ List links = form.getByXPath(".//a"); // get all <a> tags inside form
+
+ for (Iterator i = links.iterator(); i.hasNext();) {
+ HtmlAnchor link = (HtmlAnchor) i.next();
+ String linkText = link.getTextContent();
+ if (linkText.contains(linkLabel)) {
+ return link;
+ }
+ }
+
+ throw new IllegalStateException("Nav Tree link for '" + linkLabel + "' not found.");
+ }
+
+
+}// class
15 years, 6 months
EMBJOPR SVN: r517 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-06-11 11:53:00 -0400 (Thu, 11 Jun 2009)
New Revision: 517
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ApplicationsPageTest.java
Log:
Pagination test updated not to leave deployed apps upon failure.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ApplicationsPageTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ApplicationsPageTest.java 2009-06-10 16:34:04 UTC (rev 516)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ApplicationsPageTest.java 2009-06-11 15:53:00 UTC (rev 517)
@@ -77,80 +77,100 @@
/**
* Test pagination in Applications page.
*
- * FAILS because of EMBJOPR-61.
+ * Was failing because of EMBJOPR-61.
* Bad number of listed rows at page 2. expected:<5> but was:<0>
*/
public void testAppsPagination() throws EmbJoprTestException, IOException {
- // Deploy enough apps.
- // TODO: Create test which would only deploy many apps at once (hotdeploy/embjopr/both?).
- // TODO: Undeploy.
- String fileSrcPath = ejtt.getTestDataDir() +"/war/"+ BASIC_WAR;
-
- String destDir = ejtt.getTempDir() + "/appPagination";
- new File(destDir).mkdirs();
- if( ! new File(destDir).isDirectory() )
- throw new EmbJoprTestException("Coundn't create directory: "+destDir);
+ final int DEPLOYED_WARS_COUNT = 8;
+ int succesfullyDeployed = 0;
- // Deploy the same APP multiple times.
- for (int i = 0; i < 8; i++) {
- String fileDestPath = destDir+"/appPagination"+i+".war";
- FileUtils.copyFile( new File(fileSrcPath), new File(fileDestPath) );
- ejtt.deployment.deployViaEmbJoprRepeatedly( DeployableTypes.WAR, fileDestPath );
- }
-
+ try {
+ // Deploy enough apps.
+ // TODO: Create test which would only deploy many apps at once (hotdeploy/embjopr/both?).
+ // TODO: Undeploy.
+ String fileSrcPath = ejtt.getTestDataDir() +"/war/"+ BASIC_WAR;
- // Navigate to apps summary tab
- NavTreeNode appsNode = ejtt.navTree.getNodeByLabel(NAV_APPLICATIONS);
- assertNotNull(appsNode);
- appsNode.click();
- ejtt.tabMenu.clickTab("Summary");
+ String destDir = ejtt.getTempDir() + "/appPagination";
+ new File(destDir).mkdirs();
+ if( ! new File(destDir).isDirectory() )
+ throw new EmbJoprTestException("Couldn't create directory: "+destDir);
- ejtt.sleep(1000);
+ // Deploy the same APP multiple times.
+ for (int i = 0; i < DEPLOYED_WARS_COUNT; i++) {
+ String fileDestPath = destDir+"/appPagination"+i+".war";
+ FileUtils.copyFile( new File(fileSrcPath), new File(fileDestPath) );
+ ejtt.deployment.deployViaEmbJoprRepeatedly( DeployableTypes.WAR, fileDestPath );
+ succesfullyDeployed = i+1;
+ }
+
- // Get and check total items count.
- int itemsCount = ejtt.tabMenu.getTabContentBox().getPagination().getTotalItemsCount();
- // Returns null, skipping.
- //Number serverCount = (Number) server.getManagedBeanValue("#{paginationDataModel.size}");
- //assertEquals("Items count reported in page differs from server's.", serverCount, itemsCount);
+ // Navigate to apps summary tab
+ NavTreeNode appsNode = ejtt.navTree.getNodeByLabel(NAV_APPLICATIONS);
+ assertNotNull(appsNode);
+ appsNode.click();
+ ejtt.tabMenu.clickTab("Summary");
- // Check whether trinomial equation fits
- int itemsPerPage = ejtt.tabMenu.getTabContentBox().getPagination().getItemsPerPage();
- int expectedPages = itemsCount / itemsPerPage;
- if( itemsCount % itemsPerPage > 0 )
- expectedPages++;
- int pageCount = ejtt.tabMenu.getTabContentBox().getPagination().getPageCount();
- assertEquals("Expected number of pages: "+itemsCount+" / "+itemsPerPage, expectedPages, pageCount);
-
- // ------- FAILS HERE because of EMBJOPR-61. --------- //
- int page = 0;
- while( ejtt.tabMenu.getTabContentBox().getPagination().goNext() ){
+ ejtt.sleep(1000);
- page++;
- if( page > expectedPages )
- throw new EmbJoprTestException("Got too far when clicking Next" +
- " - to "+page+"th page, expected only "+expectedPages+".");
+ // Get and check total items count.
+ int itemsCount = ejtt.tabMenu.getTabContentBox().getPagination().getTotalItemsCount();
- // Get rows.
- ContentTable table = ejtt.tabMenu.getTabContentBox().getFirstTable();
- List<ContentTableRow> rows = table.getRows();
+ // Returns null, skipping.
+ //Number serverCount = (Number) server.getManagedBeanValue("#{paginationDataModel.size}");
+ //assertEquals("Items count reported in page differs from server's.", serverCount, itemsCount);
- // Check the number of rows listed against what set in combo.
- if( page < expectedPages )
- assertEquals("Bad number of listed rows at page "+page+".", itemsPerPage, rows.size() );
- else
- assertEquals("Bad number of listed rows at last page.", itemsCount % itemsPerPage, rows.size() );
+ // Check whether trinomial equation fits
+ int itemsPerPage = ejtt.tabMenu.getTabContentBox().getPagination().getItemsPerPage();
+ int expectedPages = itemsCount / itemsPerPage;
+ if( itemsCount % itemsPerPage > 0 )
+ expectedPages++;
+ int pageCount = ejtt.tabMenu.getTabContentBox().getPagination().getPageCount();
+ assertEquals("Expected number of pages: "+itemsCount+" / "+itemsPerPage, expectedPages, pageCount);
- }// while (next page)
+ int page = 0;
+ while( ejtt.tabMenu.getTabContentBox().getPagination().goNext() ){
- // TODO: And back
+ page++;
+ if( page > expectedPages )
+ throw new EmbJoprTestException("Got too far when clicking Next" +
+ " - to "+page+"th page, expected only "+expectedPages+".");
- // TODO: Go to specified page
+ // Get rows.
+ ContentTable table = ejtt.tabMenu.getTabContentBox().getFirstTable();
+ List<ContentTableRow> rows = table.getRows();
- // TODO: Check that more pages do not list same app.
+ // Check the number of rows listed against what set in combo.
+ if( page < expectedPages )
+ assertEquals("Bad number of listed rows at page "+page+".", itemsPerPage, rows.size() );
+ else
+ assertEquals("Bad number of listed rows at last page.", itemsCount % itemsPerPage, rows.size() );
+ }// while (next page)
+
+
+ // TODO: And back
+
+ // TODO: Go to specified page
+
+ // TODO: Check that more pages do not list same app.
+
+ }
+ finally {
+ // Undeploy the apps.
+ for (int i = 0; i < succesfullyDeployed; i++) {
+ String deployableName = "appPagination"+i+".war";
+ try {
+ ejtt.deployment.undeployViaEmbJopr( DeployableTypes.WAR, deployableName );
+ }
+ catch( EmbJoprTestException ex ){
+ log.error("Exception during undeployment of '"+deployableName+"': "+ex);
+ }
+ }
+ }
+
}// testAppsPagination()
@@ -231,6 +251,8 @@
+
+
/**
* Determines the type of the deployable based on the value
* in the Type column in EmbJopr.
15 years, 6 months
EMBJOPR SVN: r516 - in trunk/jsfunit: src/test/java/org/jboss/jopr/jsfunit/as5/app/ear and 1 other directory.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-06-10 12:34:04 -0400 (Wed, 10 Jun 2009)
New Revision: 516
Added:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarStressTest.java
Modified:
trunk/jsfunit/pom.xml
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
Log:
Ear deployment stress test separated.
Modified: trunk/jsfunit/pom.xml
===================================================================
--- trunk/jsfunit/pom.xml 2009-06-10 15:22:21 UTC (rev 515)
+++ trunk/jsfunit/pom.xml 2009-06-10 16:34:04 UTC (rev 516)
@@ -462,6 +462,7 @@
</includes>
<excludes>
<exclude>**/as4/**</exclude>
+ <exclude>**/*EarStressTest.java</exclude>
<!--
-->
</excludes>
Added: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarStressTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarStressTest.java (rev 0)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarStressTest.java 2009-06-10 16:34:04 UTC (rev 516)
@@ -0,0 +1,163 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.jopr.jsfunit.as5.app.ear;
+
+import org.jboss.jopr.jsfunit.*;
+import com.gargoylesoftware.htmlunit.html.*;
+import java.io.*;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.commons.lang.math.RandomUtils;
+import org.jboss.jopr.jsfunit.AppConstants.DeployableTypes;
+import org.jboss.jopr.jsfunit.exceptions.*;
+import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.*;
+
+
+
+/**
+ * This class contains tests for testing the EmbJopr Application
+ * Management Functions for Enterprise Application archives with JBoss AS 5.
+ *
+ * @author Ondra Zizka
+ *
+ */
+public class EarStressTest extends ApplicationTestBaseAS5 {
+
+ public static final DeployableTypes APP_TYPE = DeployableTypes.EAR;
+
+
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite(){
+ return new TestSuite(EarStressTest.class);
+ }
+
+ public EarStressTest() {
+ }
+ private EarStressTest(String testToRun) {
+ super(testToRun);
+ }
+
+
+
+
+/**
+ * Test aimed to reveal potential memory leak.
+ * Can take very long.
+ */
+ public void testEarDeploymentRepeated() throws IOException, EmbJoprTestException
+ {
+ final String DEPLOYABLE_NAME = BASIC_EAR;
+ int TURNS = 100;
+
+ try {
+ for (int i = TURNS; i > 0; i--) {
+ log.info("Remaining EAR deploys: "+i);
+ // Deploy the EAR.
+ String earFilePath = ejtt.getTestDataDir() + "/ear/"+DEPLOYABLE_NAME;
+ //deployEar( earFilePath );
+ ejtt.deployment.deployViaEmbJopr(APP_TYPE, earFilePath);
+ String expectedMessage = DEPLOYABLE_NAME + " created successfully";
+ checkClientAndServerMessages(expectedMessage, expectedMessage, false);
+ // Undeploy the EAR.
+ ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+ }
+ }
+ catch( EmbJoprTestException ex ){
+ log.error(ex.toString());
+ throw ex;
+ }
+ finally {
+ try {
+ // Undeploy the EAR.
+ ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+ }catch( EmbJoprTestException ex ){
+ // Expected to fail - EAR should be undeployed if everything goes well.
+ log.debug("Expected exception - "+ex.getMessage());
+ }
+ }
+
+ }
+
+
+
+
+
+
+
+ private void deployEar( String earFilePath ) throws IOException, HtmlElementNotFoundException
+ {
+ if( !(new File(earFilePath)).exists())
+ throw new FileNotFoundException(earFilePath);
+
+ log.info("Deploying: "+earFilePath);
+
+ // Navigate to Enterprise Archives
+ ejtt.getNavTree().getNodeLink(NAV_EAR).click();
+
+ // click on the "Add new resource" button
+ client.click("actionHeaderForm:addNewContent"); // 404 if setThrowExceptionOnFailingStatusCode(true) above
+
+ // Upload the file
+ HtmlFileInput fileInput = (HtmlFileInput)client.getElement("createContentForm:file");
+ fileInput.setContentType("application/ear");
+ fileInput.setValueAttribute(earFilePath);
+ client.click("createContentForm:addButton");
+ ejtt.sleep( 2000 );
+
+ // Log the message
+ ejtt.logServerMessage("Something went wrong with deploy: ");
+ }
+
+ private void undeployEar( String earFileName ) throws IOException, HtmlElementNotFoundException, ActionNotAvailableException
+ {
+
+ // Navigate to Enterprise Archives
+ ejtt.getNavTree().getNodeLink(NAV_EAR).click();
+
+ ejtt.getTabMenu().clickSummaryTab();
+
+ /// Debug log - we're getting HTTP 500 here :/
+ String dumpFile = "target/"+this.getName()+"-undeployEar-"+(1000+RandomUtils.nextInt(1000))+".html";
+ log.debug("Dumping page to "+dumpFile);
+ DebugUtils.writeFile( dumpFile, client.getPageAsText());
+ int httpStatusCode = client.getContentPage().getWebResponse().getStatusCode();
+ if( 200 != httpStatusCode )
+ log.warn("Status code before undeployment is: "+httpStatusCode);
+
+ HtmlButtonInput deleteButton = getAppDeleteButton( earFileName );
+ deleteButton.click();
+
+ // Log the message (with prefix of potential warning)
+ ejtt.logServerMessage("Something went wrong with undeploy: ");
+
+ // Sleep for 3 sec. TODO: write some waitForUndeployed()
+ ejtt.sleep( 3000 );
+
+ }
+
+
+
+}// class EarTest
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-06-10 15:22:21 UTC (rev 515)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-06-10 16:34:04 UTC (rev 516)
@@ -134,46 +134,10 @@
- /**
- * Test aimed to reveal potential memory leak.
- * Can take very long.
- */
- public void testEarDeploymentRepeated() throws IOException, EmbJoprTestException
- {
- final String DEPLOYABLE_NAME = BASIC_EAR;
- int TURNS = 100;
- try {
- for (int i = TURNS; i > 0; i--) {
- log.info("Remaining EAR deploys: "+i);
- // Deploy the EAR.
- String earFilePath = ejtt.getTestDataDir() + "/ear/"+DEPLOYABLE_NAME;
- deployEar( earFilePath );
- String expectedMessage = DEPLOYABLE_NAME + " created successfully";
- checkClientAndServerMessages(expectedMessage, expectedMessage, false);
- // Undeploy the EAR.
- ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
- }
- }
- catch( EmbJoprTestException ex ){
- log.error(ex.toString());
- throw ex;
- }
- finally {
- try {
- // Undeploy the EAR.
- ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
- }catch( EmbJoprTestException ex ){
- // Expected to fail - EAR should be undeployed if everything goes well.
- log.debug("Expected exception - "+ex.getMessage());
- }
- }
- }
-
-
/**
* assertion:
15 years, 6 months
EMBJOPR SVN: r515 - in trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit: util and 1 other directory.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-06-10 11:22:21 -0400 (Wed, 10 Jun 2009)
New Revision: 515
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java
Log:
EarTest updated
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-06-10 15:21:20 UTC (rev 514)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-06-10 15:22:21 UTC (rev 515)
@@ -231,7 +231,6 @@
// Deploy first deployable - the correct one.
String earFilePath = ejtt.getTestDataDir() + "/ear/"+DEPLOYABLE_NAME;
- //deployEar(earFilePath);
ejtt.deployment.deployViaEmbJopr(APP_TYPE, earFilePath);
String expectedMessage = DEPLOYABLE_NAME + " created successfully";
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java 2009-06-10 15:21:20 UTC (rev 514)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java 2009-06-10 15:22:21 UTC (rev 515)
@@ -4,8 +4,10 @@
import com.gargoylesoftware.htmlunit.ElementNotFoundException;
import com.gargoylesoftware.htmlunit.Page;
+import java.net.UnknownHostException;
import java.util.*;
+import java.util.logging.Level;
import org.jboss.jopr.jsfunit.exceptions.*;
import com.gargoylesoftware.htmlunit.html.*;
import com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine;
@@ -16,6 +18,9 @@
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
+import java.net.Inet4Address;
+import java.net.InetAddress;
+import java.net.InetSocketAddress;
import java.net.URL;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
@@ -122,6 +127,17 @@
.getExternalContext().getRequest() ).getLocalPort();
}
+ public InetAddress getEmbJoprIpAddress(){
+ String localAddr = ( (HttpServletRequest)FacesContext.getCurrentInstance()
+ .getExternalContext().getRequest() ).getLocalAddr();
+ try {
+ InetAddress ia = InetAddress.getByName(localAddr);
+ return ia;
+ } catch (UnknownHostException ex) {
+ throw new IllegalStateException("Error when creating EmbJopr's IP adress: "+ex.toString());
+ }
+ }
+
/**
* @returns JavaScript object, as returned by JavaScriptEngine#execute().
*/
@@ -660,27 +676,45 @@
}
+ public static final String XPATH_TABLE_UNDER_HEADER_FORMAT = "*[contains(normalize-space(), '%s')]/following::table";
+ // [@id='resourceSummaryForm:dataTable'] - is this reliable?
+
+
/**
* Returns first table under given header.
*
* Unfortunately, headers are not H2 or similar, but DIV class="instructionalText".
* To be revised later.
*/
- public ContentTable getTableUnderHeader( String headerText ) throws ActionOutOfSyncException, HtmlElementNotFoundException
+ public ContentTable getTableUnderHeader( String headerText, boolean throwIfNotFound ) throws ActionOutOfSyncException, HtmlElementNotFoundException
{
checkIfStillValid();
- String xPath = "*[contains(normalize-space(), '"+headerText+"')]/following::table";
- // [@id='resourceSummaryForm:dataTable'] - is this reliable?
- HtmlTable tableElement = (HtmlTable) element.getFirstByXPath(xPath);
+ //String xPath = "*[contains(normalize-space(), '"+headerText+"')]/following::table";
+ String xPath = String.format(XPATH_TABLE_UNDER_HEADER_FORMAT, headerText);
+ HtmlTable tableElement = (HtmlTable) element.getFirstByXPath( xPath );
if( null == tableElement ){
- throw new HtmlElementNotFoundException(
- "Table under header '"+headerText+"' not found using XPath: "+xPath, currentTest);
+ if( throwIfNotFound ){
+ throw new HtmlElementNotFoundException(
+ "Table under header '"+headerText+"' not found using XPath: "+xPath, currentTest);
+ }
+ else {
+ return null;
+ }
}
return new ContentTable(tableElement);
}
+ public ContentTable getTableUnderHeader( String headerText ) throws ActionOutOfSyncException, HtmlElementNotFoundException {
+ return getTableUnderHeader(headerText, true );
+ }
+
+ public ContentTable findTableUnderHeader( String headerText ) throws ActionOutOfSyncException, HtmlElementNotFoundException {
+ return getTableUnderHeader(headerText, false );
+ }
+
+
/**
* Returns first table in the content box.
*/
15 years, 6 months
EMBJOPR SVN: r514 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-06-10 11:21:20 -0400 (Wed, 10 Jun 2009)
New Revision: 514
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java
Log:
WarTest updated
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java 2009-06-08 16:59:10 UTC (rev 513)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java 2009-06-10 15:21:20 UTC (rev 514)
@@ -177,8 +177,12 @@
// Lack of Commons HttpClient documentation.
/**/
- Socket socket = new Socket(InetAddress.getLocalHost(), ejtt.getEmbJoprPort());
- socket.getOutputStream().write( ("GET /test/index.jsp HTTP/1.1\nHost: "+VHOST_1+"\n\n").getBytes() );
+ // Send a raw HTTP request to validate the virtual host functionality.
+ InetAddress ip = ejtt.getEmbJoprIpAddress();
+ log.info("Sending HTTP request to "+ip.toString()+" at port "+ejtt.getEmbJoprPort());
+ Socket socket = new Socket(ip, ejtt.getEmbJoprPort());
+ String httpRequest = "GET /test/index.jsp HTTP/1.1\nHost: "+VHOST_1+"\n\n";
+ socket.getOutputStream().write( httpRequest.getBytes() );
BufferedInputStream inputStream = new BufferedInputStream(socket.getInputStream());
StringBuilder sb = new StringBuilder(4096);
@@ -488,19 +492,22 @@
String path = ejtt.getDeployDir()+"/"+DEPLOYABLE_NAME;
- assertEquals(path, props.getProperty("Path").trim()); // EMBJOPR-110 here
+ assertEquals(path, props.getProperty("Path").trim());
assertEquals("no", props.getProperty("Exploded?").trim());
-
- // Metrics Summary
- HtmlTable summaryTable = ejtt.getTabMenu().getTabContentBox().getTableUnderHeader("Numeric Metrics").getElement();
- infoTable = ejtt.getContentInfoTable(summaryTable);
- // (nothing here yet)
-
-
+
+
+ // Metrics Summary - currently hidden.
+ ContentTable metricsTable = ejtt.getTabMenu().getTabContentBox().getTableUnderHeader("Numeric Metrics");
+ if( null == metricsTable )
+ log.info("Metrics table not present.");
+ else{
+ HtmlTable summaryTable = metricsTable.getElement();
+ infoTable = ejtt.getContentInfoTable(summaryTable);
+ // (nothing here yet)
+ }
}
finally {
- // Undeploy the WAR
- undeployWAR( DEPLOYABLE_NAME );
+ ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
}
}// testWarSummary()
15 years, 6 months
EMBJOPR SVN: r513 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-06-08 12:59:10 -0400 (Mon, 08 Jun 2009)
New Revision: 513
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
Log:
EarTest#testEarRedeployDifferentVersion() updated
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-06-08 15:46:19 UTC (rev 512)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-06-08 16:59:10 UTC (rev 513)
@@ -1156,34 +1156,38 @@
+ /**
+ * Deploys an EAR, then re-deploys (Content tab) EAR with the same name, but different content.
+ */
public void testEarRedeployDifferentVersion() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_WITH_WAR_COUNTER;
- final String DEPLOYABLE_NAME2 = EAR_WITH_WAR_COUNTER_20;
+ final String DEPLOYABLE_NAME_2 = EAR_WITH_WAR_COUNTER_20;
- // Copy new version to tmp dir under old ver's filename.
- String srcFilePath = ejtt.getTestDataDir() +"/"+APP_TYPE.getDataDir()+"/"+DEPLOYABLE_NAME2;
- String destFilePath = ejtt.getTempDir() +"/"+DEPLOYABLE_NAME;
- FileUtils.copyFile(new File(srcFilePath), new File(destFilePath));
-
- // Deploy the EAR.
- String appFilePath = destFilePath;
- ejtt.deployment.deployViaEmbJopr( APP_TYPE, appFilePath );
-
- String appFilePath2 = ejtt.getTestDataDir() + "/"+APP_TYPE.getDataDir()+"/"+DEPLOYABLE_NAME2;
-
try {
+ // Deploy the first EAR.
+ String appFilePath = ejtt.getTestDataDir() +"/"+APP_TYPE.getDataDir()+"/"+DEPLOYABLE_NAME;
+ ejtt.deployment.deployViaEmbJopr( APP_TYPE, appFilePath );
+
ejtt.getNavTree().getNodeByLabel(NAV_EAR).click();
ejtt.deployment.waitActivelyForDeployment(APP_TYPE, DEPLOYABLE_NAME, 3000, 15);
+
+ // Copy new version to tmp dir under old ver's filename.
+ String srcFilePath = ejtt.getTestDataDir() +"/"+APP_TYPE.getDataDir()+"/"+DEPLOYABLE_NAME_2;
+ String destFilePath = ejtt.getTempDir() +"/"+DEPLOYABLE_NAME;
+ FileUtils.copyFile(new File(srcFilePath), new File(destFilePath));
+ String appFilePath2 = destFilePath;
+
// Navigate to the Configuration tab
ContentTableRow earRow = ejtt.getDefaultContentTable().getFirstRowContainingLink(DEPLOYABLE_NAME);
earRow.getLinkByLabel(DEPLOYABLE_NAME).click();
ejtt.tabMenu.clickContentTab();
+ // Deploy the second version
String xPath = ".//table//input[@type='file']";
HtmlFileInput fileInput = ejtt.tabMenu.getTabContentBox().getElement().getFirstByXPath(xPath);
fileInput.setValueAttribute(appFilePath2);
@@ -1194,9 +1198,8 @@
// We should get:
// The specified file must have the same name as the existing
// deployed EAR File (EarWithWar-Counter.ear).
- String msg = "The specified file must have the same name " +
- "as the existing deployed EAR File";
- checkClientAndServerMessages( msg, msg, FacesMessage.SEVERITY_WARN );
+ String msg = "EAR File "+DEPLOYABLE_NAME+" updated.";
+ checkClientAndServerMessages( msg, msg, FacesMessage.SEVERITY_INFO );
// Check that the old app is deployed.
ejtt.deployment.waitActivelyForDeployment(APP_TYPE, DEPLOYABLE_NAME, 3000, 15);
@@ -1208,11 +1211,6 @@
}catch( Exception ex ){
log.error("Caught exception when undeploying: "+ex, ex);
}
- try {
- undeployEar( DEPLOYABLE_NAME2 );
- }catch( Exception ex ){
- log.error("Caught exception when undeploying: "+ex, ex);
- }
}
}
15 years, 6 months