The English version of is the official project site. Translated sites are community supported on a best-effort basis.
Edit this Page

Servicios de desarrollo para AMQP

Dev Services for AMQP automatically starts an AMQP 1.0 broker in dev mode and when running tests. So, you don’t have to start a broker manually. The application is configured automatically.

Activación/desactivación de los servicios de desarrollo para AMQP

Los servicios de desarrollo para AMQP se activan automáticamente a menos que:

  • quarkus.amqp.devservices.enabled se ajusta a false

  • el amqp-host o amqp-port está configurado

  • todos los canales AMQP de Mensajería Reactiva tienen establecidos los atributos host o port

Dev Services for AMQP relies on Docker to start the broker. If your environment does not support Docker, you will need to start the broker manually, or connect to an already running broker. You can configure the broker access using the amqp-host, amqp-port, amqp-user and amqp-password properties.

Broker compartido

Most of the time you need to share the broker between applications. Dev Services for AMQP implements a service discovery mechanism for your multiple Quarkus applications running in dev mode to share a single broker.

Dev Services for AMQP inicia el contenedor con la etiqueta quarkus-dev-service-amqp que se utiliza para identificar el contenedor.

If you need multiple (shared) brokers, you can configure the quarkus.amqp.devservices.service-name attribute and indicate the broker name. It looks for a container with the same value, or starts a new one if none can be found. The default service name is amqp.

Sharing is enabled by default in dev mode, but disabled in test mode. You can disable the sharing with quarkus.amqp.devservices.shared=false.

Configuración del puerto

By default, Dev Services for AMQP picks a random port and configures the application. You can set the port by configuring the quarkus.amqp.devservices.port property.

Configuración de la imagen

Dev Services for AMQP uses activemq-artemis-broker images. You can configure the image and version using the quarkus.amqp.devservices.image-name property:
The configured image must be compatible with the activemq-artemis-broker one. The container is launched with the AMQ_USER, AMQ_PASSWORD and AMQ_EXTRA_ARGS environment variables. The ports 5672 and 8161 (web console) are exposed.

Related content