|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
AS400 program direct to Windows NT MQ server |
« View previous topic :: View next topic » |
Author |
Message
|
fcho |
Posted: Wed Oct 16, 2002 1:58 am Post subject: AS400 program direct to Windows NT MQ server |
|
|
Apprentice
Joined: 29 May 2002 Posts: 28
|
Hi,
I've written some AS400 COBOL programs that communicate to QMGR1 in AS400 using MQI, now due to some reason, the QMGR1 will be reside in a new Windows NT box, so is that any where my AS400 programs can directly communicate to QMGR1 in NT?
As I know for AIX & Windows, I can just change the MQSERVER env. variable to point to different ip & port only, but there is no such thing in AS400, so what is the best way to do that? _________________ Regards,
fcho |
|
Back to top |
|
 |
mgrabinski |
Posted: Wed Oct 16, 2002 5:22 am Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
The communication AS/400 to Windows is exactly the same as AS to AS.
Just set up appropriate channels, possibly change queue manager names in remote queue definitions and it will work. Anyway, if you have any specific problem, update us on it _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
fcho |
Posted: Wed Oct 16, 2002 3:32 pm Post subject: |
|
|
Apprentice
Joined: 29 May 2002 Posts: 28
|
Hi,
Thanks. That mean I just need to configure 1 channel with connection name = NT box ip & port? If yes what should I set inorder to make my programs using this channel out? _________________ Regards,
fcho |
|
Back to top |
|
 |
mgrabinski |
Posted: Wed Oct 16, 2002 10:03 pm Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
Hi
Your configuration should look like this:
Code: |
AS/400:
DEFINE QREMOTE(TO_WIN) +
RNAME(FROM_AS) +
RQMNAME(WIN_QMGR) +
XMITQ(WIN_QMGR)
DEFINE QLOCAL(WIN_QMGR) +
USAGE(XMITQ)
DEFINE CHANNEL(AS_TO_WIN)
CHLTYPE(SDR) +
TRPTYPE(TCP) +
CONNAME(WIN_IP) +
XMITQ(WIN_QMGR)
WIN:
DEFINE QLOCAL(FROM_AS)
DEFINE CHANNEL(AS_TO_WIN) +
CHLTYPE(RCVR) +
TRPTYPE(TCP)
|
This configuration will enable you to send messages from AS to WIN. Start a listener on Win, start the channel from AS and put messages to TO_WIN queue. To have the communication the other way around, just mirror the definitions (rememebr to change names)
Best regards, _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|