mstrom
mstrom

Reputation: 1743

EIP pattern for synchronously processing different messages (in different queues) that affect same logical record?

I have several inbound messages that pertain to the same record. They arrive and are brokered out to different queues. Is there an EIP pattern that would allow me to process only one of those at a time, even though they're in different queues?

Thanks.

Upvotes: 0

Views: 129

Answers (1)

mdnghtblue
mdnghtblue

Reputation: 1117

You could funnel the queues into a SEDA queue:

  from("jms:queue:queueA").to("seda:handler");
  from("jms:queue:queueB").to("seda:handler");
  from("jms:queue:queueC").to("seda:handler");

  from("seda:handler").log("processing...");

Upvotes: 2

Related Questions