Integration Tests
Developers > Integration Tests
The Integration Tests validate that ActiveMQ Classic Resource Adapter operate correctly when deployed with a J2EE application running in an Application Server such as Apache Geronimo.
Getting Ready
The instructions on this page reference a few directories that you will need to substitute appropriate values for:
- activemq-core is where your ActiveMQ Classic source code is located.
- geronimo-home is where your Geronimo home directory is located.
Building the ActiveMQ Classic Resource Adapter
The ActiveMQ Classic Resource Adapter allows a J2EE Application Server to provide transaction management, connection pooling and security to ActiveMQ Classic connection when used by EJBs. The Resource Adapter is deployed in the client EAR that will be using the ActiveMQ Classic.
cd activemq-ra
maven rar:install-snapshot
Building the Integration Test EJB module
The Integration Test EJB module provides a set of EJBs that the tests are run against.
cd systest/itests/ejb
maven
Building and Deploying the Integration Test EAR module
The EAR module packages up the Resource Adapter and the Integration Tests EJBs into a deployable EAR.
cd systest/itests/ear
maven -Dgeronimo.home=geronimo-home
Starting Geronimo with the Integration Test EAR configuration.
In a seperate console, issue the following commands
cd geronimo-home
java -jar bin/server.jar org/activemq/ear/itest
Building and running the Integration Tests.
The following builds and runs the integration tests:
cd systest/itests/client
maven