deadend
deadend

Reputation: 1376

Handle Websphere Multiple Queue Managers In Java

I am attempting to read / write from Websphere Multiple Queue Managers QM1, QM2 and so on. Each queue manager have own channel id and multiple queues under each QM.

Is it possible to write java code for these conditions.

I wrote java code for multiple queues under one QM by looping queues one by one and process them. but even i cannot think to code for multiple QM. If anybody have idea please share me.

Upvotes: 2

Views: 459

Answers (1)

Shashi
Shashi

Reputation: 15273

If you have that sort of requirement then you may want to do this:

Run multiple instances of your consumer application where each instance connects to a dedicated queue manager and process messages. Run multiple threads with each thread processing messages from their dedicated queue.

This way the message processing load is distributed across multiple instances and failure in one application does not affect others.

Upvotes: 2

Related Questions