This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Tomcat Integration
Thomas Diesler edited this page Oct 11, 2013
·
16 revisions
Gravia provides a patch for for Tomcat as a Maven artefact
<dependency>
<groupId>org.jboss.gravia</groupId>
<artifactId>gravia-container-tomcat</artifactId>
<classifier>patch</classifier>
<type>zip</type>
</dependency>
It contains a number of jars that get copied to the common lib folder.
Gravia works with already resolved Modules that have a valid ClassLoader. In this case with the WebApp ClassLoader created by Tomcat.
Before the WebApp becomes operational the target container (i.e. Tomcat) has to do the following
- Create the global Runtime instance
- Install the WebApp as a Module in the Runtime
- Start the WebApp Module
When a WebApp gets undeployed the target container has to do the following
- Stop the WebApp Module
- Uninstall the WebApp Module from the Runtime
The Tomcat integration provides provides a ServletContextListener that does all of the above - add this to your WebApp.
Have a look at Module Definition
Have a look at Activating a Module