Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 Create an inbound MC2JMS stream in Message Center Console:

 

  1. 3. Set the Connection Name parameter to the ConnectionName used in the connection configuration file.
  2. The Destination Type should be QUEUE or ALIAS. If the parameter is set to QUEUE then Destination Name should be set to the physical queue name as defined in ActiveMQ or WebSphere MQ queue manager. If the Destination Type is set to ALIAS, the name should be an alias defined in the aliases definition file, as described in JMS Logical Names Configuration (Aliases)
  3. Sequential Reading parameter should be set to N.
  4. Concurrent Consumers can be set to 20, which means that one MC2 Worker processes concurrently 20 messages from the queue. If there are 8 MC2 workers (this corresponds to four servers running MC2), MC2 processes 160 messages from the queue concurrently. If this parameter is not set, MC2 processes one message per worker. For example, for 8 workers only 8 messages are processed concurrently.

Inbound Queue MC2JMS Stream - Preserving The Sequence (available starting July 2019 MC2 Release)

To preserve the sequence, make sure to consume messages for one consumer only. The configuration for this type of consumption is the same as the configuration for Queue Concurrent Processing with the following differences:

  1. Set the Sequential Reading parameter to Y. This indicates that MC2 runs only for one consumer in the MC2 cluster.
  2. Set the Concurrent Consumers to 1 or leave blank. This configuration ensures that the messages are processed strictly sequentially.
  3. To improve the performance and have some of the messages processed in parallel, define a Splitting Rule for the JMS stream. If the Split Type parameter in the Message Center Console Stream is defined as Rule Based and a rule is selected, MC2 uses the Split Rule to calculate the key for each record in the message and persists it in its local topic (currently kafka) for further processing. The records/messages with the same key are processed sequentially. Records with different keys can be processed concurrently.

Durable Topic Subscription (available starting July 2019 MC2 Release)

The configuration for the Durable Topic Subscription is almost the same as the configuration for Inbound Queue - Preserving The Sequence, with the following differences:

  1. Set the Destination Type to TOPIC or ALIAS.
  2. Eagle MC2 provides the following Component Names configured specifically for Durable Topic Subscriptions: wmq-tdseagle-amq-tds.
  3. Set the Durable Subscription Name to a name used for the durable topic subscription.
  4. If Durable Subscription Name is set, MC2 limits the number of consumers to one for the whole cluster. To improve the performance you are strongly advised to use Rule Based splitting with a Splitting Rule.
Info

The Client ID set on the connection is the SID-stream_name, where SID is the oracle database SID MC2 is connected to, and stream_name is the stream name for which the subscription is created.

...