Testcontainers module for ActiveMQ and Artemis.
You can start an ActiveMQ Classic container instance from any Java application by using:
Default ActiveMQ container inside_block:container
With custom credentials:
Setting custom credentials inside_block:settingCredentials
You can start an ActiveMQ Artemis container instance from any Java application by using:
Default Artemis container inside_block:container
With custom credentials:
Setting custom credentials inside_block:settingCredentials
With anonymous login:
Allow anonymous login inside_block:enableAnonymousLogin
Add the following dependency to your pom.xml/build.gradle file:
=== "Gradle"
groovy testImplementation "org.testcontainers:testcontainers-activemq:{{latest_version}}"
=== "Maven"
xml <dependency> <groupId>org.testcontainers</groupId> <artifactId>testcontainers-activemq</artifactId> <version>{{latest_version}}</version> <scope>test</scope> </dependency>