ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 7 - MCIA - Level 1 discussion

Report
Export

An integration Mule application is deployed to a customer-hosted multi-node Mule 4 runtime duster.

The Mule application uses a Listener operation of a JMS connector to receive incoming messages from a JMS queue.

How are the messages consumed by the Mule application?

A.
Depending on the JMS provider's configuration, either all messages are consumed by ONLY the primary cluster node or else ALL messages are consumed by ALL cluster nodes
Answers
A.
Depending on the JMS provider's configuration, either all messages are consumed by ONLY the primary cluster node or else ALL messages are consumed by ALL cluster nodes
B.
Regardless of the Listener operation configuration, all messages are consumed by ALL cluster nodes
Answers
B.
Regardless of the Listener operation configuration, all messages are consumed by ALL cluster nodes
C.
Depending on the Listener operation configuration, either all messages are consumed by ONLY the primary cluster node or else EACH message is consumed by ANY ONE cluster node
Answers
C.
Depending on the Listener operation configuration, either all messages are consumed by ONLY the primary cluster node or else EACH message is consumed by ANY ONE cluster node
D.
Regardless of the Listener operation configuration, all messages are consumed by ONLY the primary cluster node
Answers
D.
Regardless of the Listener operation configuration, all messages are consumed by ONLY the primary cluster node
Suggested answer: C

Explanation:

Correct answer is Depending on the Listener operation configuration, either all messages are consumed by ONLY the primary cluster node or else EACH message is consumed by ANY ONE cluster node For applications running in clusters, you have to keep in mind the concept of primary node and how the connector will behave. When running in a cluster, the JMS listener default behavior will be to receive messages only in the primary node, no matter what kind of destination you are consuming from. In case of consuming messages from a Queue, you'll want to change this configuration to receive messages in all the nodes of the cluster, not just the primary.

This can be done with the primaryNodeOnly parameter:

<jms:listener config-ref="config" destination="${inputQueue}" primaryNodeOnly="false"/>

asked 18/09/2024
Benvindo Almeida
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first