Integration / ActiveMQ Interview Questions Basics
Define a Consumer in ActiveMQ?
A Consumer (MessageConsumer) is the client that receives messages from a Queue or Topic. It can pull messages synchronously via receive(), or process them asynchronously through a registered MessageListener callback.
Consumers are also responsible for acknowledging messages according to the session's acknowledgment mode, which tells the broker when it is safe to remove or redeliver a message.
A Consumer can also be created with a message selector, a SQL-like filter expression evaluated against message headers and properties, so it only receives messages matching specific criteria rather than every message sent to the destination.
More Related questions...