Author |
Message
|
srinivasACN |
Posted: Wed Aug 10, 2005 11:38 am Post subject: Primary/Secondary in UNIX MQ 5.3 |
|
|
Apprentice
Joined: 08 Aug 2005 Posts: 43
|
How do you define a cluster repository to be a primary or secondary repository in UNIX using mqsc for MQ ver. 5.3?
thanks. |
|
Back to top |
|
 |
mq_crazy |
Posted: Wed Aug 10, 2005 11:40 am Post subject: |
|
|
 Master
Joined: 30 Jun 2004 Posts: 295
|
If you want to make it primary then do
ALTER QMGR REPOS(name of the cluster) orelse the queuemanager will be as secondary repository |
|
Back to top |
|
 |
vennela |
Posted: Wed Aug 10, 2005 11:44 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
mq_crazy wrote: |
If you want to make it primary then do
ALTER QMGR REPOS(name of the cluster) orelse the queuemanager will be as secondary repository |
Well there is no concept of primary or secondary repositories in MQ
You will have full repository and partial repositories.
You can make a QMGR a FR if you do the above or else it will be a partial repository |
|
Back to top |
|
 |
srinivasACN |
Posted: Wed Aug 10, 2005 11:44 am Post subject: |
|
|
Apprentice
Joined: 08 Aug 2005 Posts: 43
|
I see.
And any other partial repositories need to have a communication link between them and the primary? do i understand this correctly?
reason i ask is i have been trying to follow the cluster configuration example in one of the IBM Redbooks (WebSphere MQ in a
z/OS Parallel Sysplex Environment) and it doesnt seem to work. I have been struggling with the configuration for days now and am at the mercy of anybody's help. thanks. |
|
Back to top |
|
 |
vennela |
Posted: Wed Aug 10, 2005 11:51 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
On the QMGR you want to join it in a cluster, create CLUSRCVR first and then CLUSSDR to the FR. |
|
Back to top |
|
 |
srinivasACN |
Posted: Wed Aug 10, 2005 12:02 pm Post subject: |
|
|
Apprentice
Joined: 08 Aug 2005 Posts: 43
|
Thanks to all. I figured out my problem.
For all those interested in the solution.
If you are using JMS to put to a clustered queue, you cannot define the queue manager. MQ will figure this out. |
|
Back to top |
|
 |
vennela |
Posted: Wed Aug 10, 2005 2:07 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
srinivasACN wrote: |
If you are using JMS to put to a clustered queue, you cannot define the queue manager. MQ will figure this out. |
What do you mean? |
|
Back to top |
|
 |
ashoon |
Posted: Wed Aug 10, 2005 2:18 pm Post subject: JMS and clustered queues |
|
|
Master
Joined: 26 Oct 2004 Posts: 235
|
I learnt this little tidbit a year back when I did a active/active message broker with a 'remote' adapter i.e. the adapter's queue manager was different to the brokers and all queue managers where clustered. Since the adapter is in all essence a JMS facing application the following applies... pg. 320 of the latest mq java manual
Note: When sending a message to a cluster, leave the Queue Manager field in the JMS Queue object blank. This enables an MQOPEN to be performed in
BIND_NOT_FIXED mode, which allows the queue manager to be
determined. Otherwise an exception is returned reporting that the queue
object cannot be found. This applies when using JNDI or defining queues at
runtime.
eg. ioQueue = session.createQueue("queue:///SYSTEM.DEFAULT.LOCAL.QUEUE");
[/i] |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Aug 10, 2005 8:02 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Except when you want the message to go to a specific QM in the cluster.
QM1,2,3 are in the same cluster.
If you are connected to QM1, and don't care if the message goes to QueueA on QM2 or QM3, then leave the QM name blank on the MQOPEN. If you need the message to go back to QueueA on QM2, then you have to specify QM2 on the MQOPEN. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|