Petals ANT Tasks 2.10.0+

Version 1 by Christophe DENEUX
on Jul 05, 2024 12:17.

compared with
Current by Christophe DENEUX
on Mar 05, 2026 15:45.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (2)

View Page History
* Petals ESB container 5.4.0+.

The [support of Maven URL|https://ops4j1.jira.com/wiki/spaces/paxurl/pages/3833866/Mvn+Protocol] is provided by [OPS4J Pax URL v2.6.14+|https://ops4j1.jira.com/wiki/spaces/paxurl/overview]. This support of Maven is directly included in the Petals ANT Tasks JAR file through the Java SPI mechanism but *requires to be loaded by the system classloader*. If Petals ANT Tasks JAR file can't be loaded through the system classloader, you can use the Java system property '{{java.protocol.handler.pkgs}}' with the value '{{org.ops4j.pax.url}}'.
{info}

</waitfor>
{code}

h2. Condition {{isResponseTimeMetricAvailable}}

The condition '{{isResponseTimeMetricAvailable}}' verifies that response time metrics are available for the given component.

|| Attribute || Description || Default ||Required ? ||
| {{host}} | the hostname of a Petals container | {{localhost}} | No |
| {{port}} | JMX port of the Petals container | {{7700}} | No |
| {{username}} | JMX username of the Petals container | - | No |
| {{password}} | JMX password of the Petals container | - | No |
| {{componentName}} | the component identifier for which we want verify that response time metrics are available | - | Yes |

h3. Example

{code}
<waitfor maxwait="${monitoring-sampling-period}"
maxwaitunit="second"
checkevery="1"
checkeveryunit="second"
timeoutproperty="metricsNotAvailable">
<isResponseTimeMetricAvailable componentName="${bc-soap-name}" />
</waitfor>
{code}