Author |
Message
|
devita |
Posted: Mon Aug 30, 2004 8:50 am Post subject: Workload balancing using a single QMGR |
|
|
Novice
Joined: 19 Jul 2001 Posts: 14
|
hello, we would like to replicate, for high availability scope, a crucial application that acts as a listener on a MQ queue. We wouldn't replicate the QMGR (it is sure and stable) but only the application and the relative input queue.
How can we spray the inbound traffic on the two different input queues? Have we to implement some custom algorithm in the external application that put messages in the queues?
Can we use some native MQ feature?
thanks in advance
best regards |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Aug 30, 2004 9:00 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Have you looked in the repository? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Aug 30, 2004 11:40 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
You think 2 queues on the same QM are going to give you High Availability?
 _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Aug 30, 2004 1:54 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
If your question is about balancing out the volume from one queue over an application running on 2 different servers, you can use client connection and MDB's.
Though usually you would have the qmgr on the same machine as was because of the 2 phase commit, and other network interference....
Enjoy |
|
Back to top |
|
 |
devita |
Posted: Mon Aug 30, 2004 11:57 pm Post subject: Workload balancing using a single QMGR |
|
|
Novice
Joined: 19 Jul 2001 Posts: 14
|
The QMGR is MQ on z/OS and we don't use WebSphere on z/os, so we can't use MDB. The listener applications will be CICS java applications and we would replicate the CICS regions that host these listeners. Both the CICS regions are bound at the same QMGR.
thanks,
Ugo |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Aug 31, 2004 1:53 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You could still use an MDB like construct implementing the MessageListener interface. However for that you will need to use the JMS model and the JMS jars (should be delivered with WMQ). Don't need to run WAS on OS for that.
You can as well use base Java but it will restrict your portability.
I do not see much of a problem here as with 2 different regions on the same MF it should behave like with 2 different WAS on the same UNIX box.
However and if the different regions serve different purposes you might want to go as far as to use different qmgrs, one for each region.
Now every flavor in between exists as well: different queue, etc
Enjoy |
|
Back to top |
|
 |
devita |
Posted: Wed Sep 01, 2004 12:01 am Post subject: Workload balancing using a single QMGR |
|
|
Novice
Joined: 19 Jul 2001 Posts: 14
|
thanks for your response.
I have two issues:
1) Listener implementation: I have to implement my listener logic also in CICS regions that doesn't support JMS. In this case I'm thinking to use MDB on WAS and trigger CICS logic on CICS.
2) my major question regarding the spray capabilities on two queues in the same QMGR. If I wouldn't use a cluster approach (two Q on two QMGR in cluster) which other features could I use?
thank you
Ugo |
|
Back to top |
|
 |
|