ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Clustering » Primary/Secondary in UNIX MQ 5.3

Post new topic  Reply to topic
 Primary/Secondary in UNIX MQ 5.3 « View previous topic :: View next topic » 
Author Message
srinivasACN
PostPosted: Wed Aug 10, 2005 11:38 am    Post subject: Primary/Secondary in UNIX MQ 5.3 Reply with quote

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
View user's profile Send private message AIM Address
mq_crazy
PostPosted: Wed Aug 10, 2005 11:40 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Wed Aug 10, 2005 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
srinivasACN
PostPosted: Wed Aug 10, 2005 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
vennela
PostPosted: Wed Aug 10, 2005 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
srinivasACN
PostPosted: Wed Aug 10, 2005 12:02 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
vennela
PostPosted: Wed Aug 10, 2005 2:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ashoon
PostPosted: Wed Aug 10, 2005 2:18 pm    Post subject: JMS and clustered queues Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Wed Aug 10, 2005 8:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Clustering » Primary/Secondary in UNIX MQ 5.3
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.