Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.24 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.24 KB

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();
}