Skip to content

levry/imq-embedded

Repository files navigation

Embedded OpenMQ Broker

Build Status Quality Gate Download MIT License

Run embedded openMQ broker without complete installation of openMQ. This can be useful when creating tests.

How to connect the project

Gradle

test 'com.github.levry:imq-embedded:0.0.5'

Maven

<dependency>
    <groupId>com.github.levry</groupId>
    <artifactId>imq-embedded</artifactId>
    <version>0.0.5</version>
    <scope>test</scope>
</dependency>

How to use

EmbeddedBroker broker = EmbeddedBroker.builder().homeTemp().build();
broker.run();

try {
    ConnectionFactory connectionFactory = broker.connectionFactory();
    // Do it
} finally {
    broker.stop();
}

Releases

No releases published

Packages

No packages published

Languages