IntelliJ IDEA 2024.3 Help

Message queues

A message queue provides asynchronous communication between your application components. This means that the sender and receiver of the message don't interact with each other directly and don't need to interact with the message queue at the same time.

The Java Message Service (JMS) framework is a messaging standard for Java application components. IntelliJ IDEA provides code completion and navigation for several JMS provider implementations:

When implementing the sender method, you can press Ctrl+Space to complete available destinations and then hold Ctrl while clicking it to navigate to the relevant declaration.

RabbitMQ exchange completion

Click The message queue receiver icon in the gutter where you implemented the receiver (listener) method to list all usages of the corresponding destination and navigate to any one of them.

RabbitMQ receiver gutter icon

IntelliJ IDEA recognizes queue names as references and provides corresponding coding assistance including navigation and refactoring. If it's not the case, press Alt+Enter on a destination, select Inject language or reference, and select a message broker.

Last modified: 28 August 2024