The Tomcat example demonstrates how to activate and manage an existing (external) technology using the Rio exec framework. In this example, Tomcat is installed, deployed and started. The environment is set allowing Tomcat to be managed by JMX.
The example also shows how a declarative watch can be used to monitor JMX managed attributes, and set thresholds for manage-able Tomcat attributes. Our example shows how the MBean for the thread pool that handles incoming Web requests can be observed.
Our example will create a Service Control Adapter (SCA) to activate and monitor a Tomcat instance. The example requires no coding, just configuration of the OperationalString.
Building the exampleThe Tomcat example is built as a Maven project, and uses the Maven Rio Plugin to produce a single artifact; the Operational String Archive (OAR).
Running mvn install will result in the execution of an integration test that uses the Rio test infrastructure, where Tomcat will be provisioned, extracted and started.