CDI Integration

Apache ActiveMQ Artemis provides a simple CDI integration. It can either use an embedded broker or connect to a remote broker.

Configuring a connection

Configuration is provided by implementing the ArtemisClientConfiguration interface.

  1. public interface ArtemisClientConfiguration {
  2. String getHost();
  3. Integer getPort();
  4. String getUsername();
  5. String getPassword();
  6. String getUrl();
  7. String getConnectorFactory();
  8. boolean startEmbeddedBroker();
  9. boolean isHa();
  10. boolean hasAuthentication();
  11. }

There’s a default configuration out of the box, if none is specified. This will generate an embedded broker.