Configuring broker transport
Artemis uses two fundamental concepts: acceptors and connectors. Acceptors determine how the broker accepts incoming connections, while connectors determine how to connect to other Artemis brokers or servers that support its protocols (as described in the introduction).
Two types of acceptor and connector exist:
invm
- The connections are within the same JVM (more performance, obviously)http
- The connections are over HTTP to/from remote clients; they use Undertow to upgrade from an HTTP connection
Each configured connector is used just to reach a server if there is the same type of acceptor configured on the other server. In other words, if we are making a connection with an invm
connector, the other server must have an invm
acceptor configured. On the other hand, if we are making a connection with an http-connector
, the other server must have an http-acceptor
configured.
To read the connector and acceptor configuration you can invoke the following CLI commands...