Apache Tomcat Plugin
The Deploy Apache Tomcat plugin is used to manage deployments on a Tomcat server. Standard support includes deploying and undeploying web applications, datasources, mail sessions, resource links, ActiveMQ, and WebSphere MQ resources. The plugin can be extended to support more deployment options or management of new artifacts and resources on Tomcat.
For information about Tomcat requirements and the configuration items (CIs) it supports, see the Tomcat Plugin Manual.
Features
- Deploy web applications (WAR) to a Tomcat virtual host.
- Deploy resources to an application context on a Tomcat virtual host.
- Deploy resources to the common Tomcat context (
$TOMCAT_HOME/conf/context.xml
). - Deploy resource links.
- Supported JEE resources:
- Datasource
- JMS Queue
- JMS Queue Connection Factory
- JMS Topic
- JMS Topic Connection Factory
- Mail Session
- Supported Messaging Middleware:
- ActiveMQ (currently supported version is
ActiveMQ Artemis 2.15.0
) - WebSphere MQ
- ActiveMQ (currently supported version is
- Support for Tomcat Database Connection Pool (DBCP) configurations.
- Support for stopping and starting a Tomcat server via control tasks.
- Deploy configuration files to a Tomcat server.
- Deploy libraries files to a Tomcat server.
Tomcat topology
The Tomcat plugin facilitates the modeling of a Tomcat installation into the Deploy infrastructure as a hierarchical set of containers. The Tomcat server (tomcat.Server
), Tomcat common context (tomcat.CommonContext
), and Tomcat virtual host (tomcat.VirtualHost
) containers can be included in Deploy environment definitions, where you can deploy deployables.
Tomcat server (tomcat.Server
)
tomcat.Server
models a Tomcat installation running on a host. This container must be defined under any overthere.Host
in the Deploy infrastructure. The container supports operating system-specific stop and start commands used to control the stopping and starting of the Tomcat server. In addition, stop and start wait times can be specified. Deploy will wait for the specified amount of time to elapse after the execution of a stop/start command.
Tomcat common context (tomcat.CommonContext
)
tomcat.CommonContext
models the context.xml
file present in the $TOMCAT_HOME/conf
directory. This container must be defined under a tomcat.Server
container. Only a single instance should be defined. Any Tomcat resource can be deployed to this container.
Tomcat virtual host (tomcat.VirtualHost
)
tomcat.VirtualHost
models a Tomcat virtual host definition ($TOMCAT_HOME/conf/[enginename]/[hostname]
). This container must be defined under a tomcat.Server
container. Multiple instances can be defined. Web applications and tomcat resources can be deployed to this container.