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 » General IBM MQ Support » Queuue manager alias

Post new topic  Reply to topic
 Queuue manager alias « View previous topic :: View next topic » 
Author Message
gobi_nathan
PostPosted: Fri Jan 31, 2003 2:12 am    Post subject: Queuue manager alias Reply with quote

Acolyte

Joined: 08 Jan 2003
Posts: 69

Hi,

Can anyone tell me the detailed steps to create the Queue manger alias.
I have the Queue mangers QM1,QM2.I want Queue manger QM2 to use QM1_alias to post the message into some queue in QM1.

-gobi
Back to top
View user's profile Send private message
pgorak
PostPosted: Fri Jan 31, 2003 3:06 am    Post subject: Reply with quote

Disciple

Joined: 15 Jul 2002
Posts: 158
Location: Cracow, Poland

Queue manager alias is actually a remote queue definition. To do what you are asking about you need issue the following MQSC command on QM2:

DEFINE QREMOTE(QM1_alias) RQMNAME(QM2)

Now, let's say you have a remote queue "Q1" defined on QM2, which allows for sending messages to QM1. If QM2 receives a message with target queue manager name "QM1_alias" and target queue name "Q1", the message is forwarded to QM1.

Piotr
Back to top
View user's profile Send private message
yaakovd
PostPosted: Fri Jan 31, 2003 12:31 pm    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Actualy Piotr described alias to on QM2 to itself. In this case you still need create remote queues om QM2 for each destination Q on QM1.

When you need alias?

1. If your remote QMgr always changed depend configuration.
2. If you have big namber of remote Q-s
3. both cases

Create remote queue "QM1_alias" with blank Remote Q Name and "QM1" as remote QMgr name: DEFINE QREMOTE(QM1_alias) RQMNAME(QM1)

Create transmition Q QM1.

In message define destination Q name as wanted Q name on QM1 (don't define additional remote Q on QM2). Define destination QMgr name as QM1_alias.
Send the message to QM1_alias on QM2.

What really happend?
MQSeries compare destination QMgr name with current QMgr name (not found), looking for Q with name as destination QMgr - in regular it will be XMit Q, but remote Q is "good enough" .
When a message "contacted" with any remote Q, destination parameters is replaced by parameters in Q. In case of alias (blank remote Q name) only destination QMgr name will be replaced QM1_alias --> QM1.

This scenario working properly 2 years in all our environments.
It also usefully for failover configuration.
Let me know if you have some problem.
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Queuue manager alias
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.