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 » IBM MQ Installation/Configuration Support » Client appl connecting with MQSERVER without Qmgr name

Post new topic  Reply to topic
 Client appl connecting with MQSERVER without Qmgr name « View previous topic :: View next topic » 
Author Message
KAKEZ
PostPosted: Thu Sep 25, 2003 12:57 am    Post subject: Client appl connecting with MQSERVER without Qmgr name Reply with quote

Centurion

Joined: 10 Oct 2002
Posts: 117

Hi,

reference to the manual Websphere MQ Clients page 148 item 'Using MQSERVER' I understand that:

- if you define the client channel for instance by:
MQSERVER=svrconn-name/TCP/host-IP-adress(1415)
and
- if client appli call MQCONN with field QmgrName="" (blanc)

the connection is made to the QMGR for which the listener listening on port 1415 is running to

Is that right?

If yes, that's interesting because that's a mean to let the client appli connect to a qmgr without having to know the name of the Qmgr it is connecting to - this operation is made automatic - we only have to play with the listeners and the ports on which they are listening.

thanks for opinions about that
Jack
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Sep 25, 2003 9:49 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

The blank queue manager name means to use the default queue manager. If your default qmgr is listening on port 1415, things work in your scenario. However, if you have another qmgr listening on port 1415, you'll end up with a 2058 error.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
KAKEZ
PostPosted: Thu Sep 25, 2003 11:26 pm    Post subject: Reply with quote

Centurion

Joined: 10 Oct 2002
Posts: 117

Hi bower,

thanks for replying,

- but in case where there is no default qmgr defined on the server?
are you sure the client connection is impossible even on the qmgr on which the listener is listening on port 1415?

- that would be a good solution for me: I would like to free the client application from having to know the qmgr name to connect to whithin the MQCONN call - and so make this connection automatic

Jack
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Sep 26, 2003 4:48 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

KAKEZ wrote:
that would be a good solution for me: I would like to free the client application from having to know the qmgr name to connect to whithin the MQCONN call - and so make this connection automatic


If you don't to hard code a queue manager name inside your code, then use parameters from a configuration file, a command line option, an environment variable, or a database lookup.

But I think it's a bad idea to give the client application no way of specificing which particular queue manager to connect to. That is, hard coding an empty name is as bad as hardcoding any other name. If you use any of the techniques above, you can still do what you want by specifying an empty parameter.
_________________
I am *not* the model of the modern major general.
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 » IBM MQ Installation/Configuration Support » Client appl connecting with MQSERVER without Qmgr name
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.