| [ Web Proxy ] |
| Viewing: https://java.testcontainers.org/supported_docker_environment/../../features/../../modules/activemq/ | [Back] [Original] |
Testcontainers module for ActiveMQ and Artemis.
You can start an ActiveMQ Classic container instance from any Java application by using:
ActiveMQContainer activemq = new ActiveMQContainer("apache/activemq:5.18.7")
With custom credentials:
ActiveMQContainer activemq = new ActiveMQContainer("apache/activemq:5.18.7")
.withUser("testcontainers")
.withPassword("testcontainers")
You can start an ActiveMQ Artemis container instance from any Java application by using:
ArtemisContainer artemis = new ArtemisContainer("apache/activemq-artemis:2.32.0-alpine")
With custom credentials:
ArtemisContainer artemis = new ArtemisContainer("apache/activemq-artemis:2.32.0-alpine")
.withUser("testcontainers")
.withPassword("testcontainers")
With anonymous login:
ArtemisContainer artemis = new ArtemisContainer("apache/activemq-artemis:2.32.0-alpine")
.withEnv("ANONYMOUS_LOGIN", "true")
Add the following dependency to your pom.xml/build.gradle file:
testImplementation "org.testcontainers:testcontainers-activemq:2.0.5"
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers-activemq</artifactId>
<version>2.0.5</version>
<scope>test</scope>
</dependency>
| Web Proxy Viewer | New URL | Original Page |