Author |
Message
|
offshore |
Posted: Thu Oct 14, 2004 9:33 am Post subject: AMQSPUTC |
|
|
 Master
Joined: 20 Jun 2002 Posts: 222
|
All,
I thought I had done this before (Windows box), but perhaps not.
Is it possible to use AMQSPUTC to put a message on a queue on a remote queue manager?
For example: On my machine I have mq running with QMGRX
But I want to connect to QMGRZ and put a message.
I thought the syntax was AMQSPUTC Q.1 QMGRZ, but that isn't working.
Any help would be appreciated. |
|
Back to top |
|
 |
kingsley |
Posted: Thu Oct 14, 2004 9:36 am Post subject: |
|
|
Disciple
Joined: 30 Sep 2001 Posts: 175 Location: Hursley
|
Offshore,
Need to set client channel table with environment variabels
or
MQServer Variable
or
Change the program to use MQConnx.
Kingsley |
|
Back to top |
|
 |
mqsha |
Posted: Thu Oct 14, 2004 9:52 am Post subject: |
|
|
Novice
Joined: 10 Jun 2004 Posts: 17
|
amqsputc is for Client. If you have MQServer installed on your system use amqsput to the remote queue on your system. or export the channel table from other server. or set the MQSERVER variable. |
|
Back to top |
|
 |
offshore |
Posted: Thu Oct 14, 2004 10:13 am Post subject: |
|
|
 Master
Joined: 20 Jun 2002 Posts: 222
|
Is there a book or something I can read to get a better grasp on this..something isn't clicking.
On my machine I have MQServer installed and I administer "X" number of machines. Once in a while I have to put a test message on a queue from a specific qmgr.
I see using the SET MQSERVER=channel/tcp/ip(port), but what about multiple entries.
Can you define multiple definitions are does the set command need performed each time??
Currently, I have to terminal into that server and issue the amqsput cmd.
I would like a work around for that. I can't use the MMC MQ Explorer for this function because they're cluster and your cannot do the right click put message deal.
THNX for the reponses so far. |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Oct 14, 2004 10:39 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
You can look at the clients manual for more information. It sounds like you need to build a client connection table that has an entry in it for every one of your qmgrs. You could then use this rather than setting the MQSERVER every time you wanted to connect to a different qmgr. |
|
Back to top |
|
 |
offshore |
Posted: Thu Oct 14, 2004 10:50 am Post subject: |
|
|
 Master
Joined: 20 Jun 2002 Posts: 222
|
Ok,
I got it working now or again...something like that.
I had to add the MQCHLLIB & MQCHLTAB variables (then reboot)
Now I just have to finish defining all my client connection channels to connect to the queue managers.
Thanks Everybody (with my Dr. Nick Riviera accent)
Offshore |
|
Back to top |
|
 |
mqsha |
Posted: Fri Oct 15, 2004 5:06 am Post subject: |
|
|
Novice
Joined: 10 Jun 2004 Posts: 17
|
If the client is connected more than one qmgr on different systems.
create a serverconnection and client connection channel on server with the connection name(Server). Ftp those amqchl.tab to client
so that ur client can able to connect differnt queue manager using different channel table. |
|
Back to top |
|
 |
|