Run embedded openMQ broker without complete installation of openMQ. This can be useful when creating tests.
test 'com.github.levry:imq-embedded:0.0.5'
<dependency>
<groupId>com.github.levry</groupId>
<artifactId>imq-embedded</artifactId>
<version>0.0.5</version>
<scope>test</scope>
</dependency>
EmbeddedBroker broker = EmbeddedBroker.builder().homeTemp().build();
broker.run();
try {
ConnectionFactory connectionFactory = broker.connectionFactory();
// Do it
} finally {
broker.stop();
}