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.
The Rio Service Exec framework is currently available for POSIX based systems only
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.
The OperationalString can be composed in both XML and using a Groovy based DSL. This example uses Groovy.
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.