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 Discussion » Different Ways of Client Server Connection

Post new topic  Reply to topic
 Different Ways of Client Server Connection « View previous topic :: View next topic » 
Author Message
prabhu_s1177
PostPosted: Mon Nov 26, 2007 9:48 pm    Post subject: Different Ways of Client Server Connection Reply with quote

Apprentice

Joined: 26 Nov 2007
Posts: 34

i wants to know the differenet ways of connection(client -server)
one way is mqserver(vairable) .i wants to know other ways rather than this
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Nov 26, 2007 11:10 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

Please go through the MQ client doc, it clearly defines there.

one using MQSERVER
Second using TAB file to connect, you have to export two variables to set it.
in order to know that variables read the mq client doc


Regards
gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
velocity
PostPosted: Fri Nov 30, 2007 7:44 am    Post subject: Reply with quote

Centurion

Joined: 30 Nov 2007
Posts: 126

Correct! There are 2 ways you can set environment variables for a server connection:

1) SET MQSERVER=QMC1.SVR/TCP/HOSTNAME

2) SET MQCHLLIB="C:\Program Files\IBM\WebSphere MQ"
SET MQCHLTAB=AMQCLCHL.TAB

The above is for windows

-Use EXPORT instead of SET on UNIX with appropriate path!

-Enjoy
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Nov 30, 2007 7:56 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

On the other hand, if you use MQCONNX then you don't need to bother with any environment variables or Client Channel Table.


Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Fri Nov 30, 2007 8:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

RogerLacroix wrote:
On the other hand, if you use MQCONNX then you don't need to bother with any environment variables or Client Channel Table.


Instead, you usually need to write code to read and write the same kinds of configuration information from somewhere else...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
velocity
PostPosted: Fri Nov 30, 2007 10:24 am    Post subject: Reply with quote

Centurion

Joined: 30 Nov 2007
Posts: 126

Hey guys!

How to use MQCONNX to substitute for the setting the environment variables?

Thanks in Advance
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri Nov 30, 2007 11:54 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Check out the Application Programming Guide.
Search on MQCONNX in the MQ Info Center:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri Nov 30, 2007 12:06 pm    Post subject: Reply with quote

Jedi Knight

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

You can also look at the amqscnxc.c sample.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
velocity
PostPosted: Fri Nov 30, 2007 12:36 pm    Post subject: Reply with quote

Centurion

Joined: 30 Nov 2007
Posts: 126

amqscnxc [-x ConnName [-c SvrconnChannelName]] [QMgrName]
Perfect!!
Thanks Peter & Jedi
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Nov 30, 2007 2:31 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

velocity wrote:
amqscnxc [-x ConnName [-c SvrconnChannelName]] [QMgrName]


Again I remind you this is only a sample.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » General Discussion » Different Ways of Client Server Connection
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.