Author |
Message
|
bleed |
Posted: Fri May 19, 2006 1:05 am Post subject: File transfer using Reference messages ... |
|
|
Newbie
Joined: 19 May 2006 Posts: 4
|
Hi,
I'm new to MQ.
I need to transfer a file from iSeries to Windows via MQ.
I followed the exact steps mentioned in:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/csq034g.htm
I tried setting up Queue Managers in various combinations (both Queue Managers on Windows, both on iSeries, one on Windows and the other on iSeries and so on). Then, used the sample Put Reference Message programs (AMQSPRM4 for iSeries, amqsprm for Windows) appropriately.
No messages went through in any case!
I usually get the error:
"COA not received from destination queue manager within 15 seconds
AMQSPRM ending"
Do I need to take care of any other configuration other than that mentioned in the URL?
Has anyone successfully transferred files using the steps given?
Am I missing some security setting?
Please help. |
|
Back to top |
|
 |
wschutz |
Posted: Fri May 19, 2006 2:25 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
The reference message samples have been around for a long while. I'd suggest a simple setup wherey-by you try and send a file between two windows qmgrs. If it doesn't work, some things to check are:
(1) ensure the channel is actually running in both directions between the qmgrs and that you've properly specify the reference message exits.
(2) look at the dead letter queues on both qmgrs for new messages
(3) check the mq log files (amqerr01.log, on windws in the event viewer).
It looks like the sample exits are using perror() to write error info, so you might try running the channels in the foreground (ie: from the command prompt: runmqchl -m xxx -c xxxx and runmqlsr -m xxxx -t tcp -p xxxxx) and see if they produce anything interesting.
And lastly, remember these are SAMPLES. If you plan on using them for production, its your responsibility to ensure they meet your production needs. You might want to look at off the shelf products, such as PM4DATA. _________________ -wayne |
|
Back to top |
|
 |
bleed |
Posted: Fri May 19, 2006 4:04 am Post subject: File transfer using Reference messages ... |
|
|
Newbie
Joined: 19 May 2006 Posts: 4
|
Thanks for the quick response Wayne!
I figured that, if the Message Exits are not entered correctly, the channels will not come up at all.
I could bring up channels in both directions correctly from the Websphere MQ Explorer on Windows. (Although, they go into "Retrying" status for a while before coming up - which I assume is normal).
However, when I try the runmqchl command from the command line, I get errors such as:
Quote: |
5/19/2006 16:56:41 Channel program started.
5/19/2006 16:56:41 AMQ9502: Type of channel not suitable for action requested.
5/19/2006 16:56:42 AMQ9999: Channel program ended abnormally. |
Quote: |
5/19/2006 16:54:03 Channel program started.
Reason for calling exit is MQXR_INIT
Reason for calling exit is MQXR_TERM
5/19/2006 16:54:03 AMQ9558: Remote Channel is not currently available.
5/19/2006 16:54:03 AMQ9999: Channel program ended abnormally. |
<<A lot of refreshing on the GUI doesn't help in the above case. So I used the GUI itself to bring up the channels!!>>
I did see a "Report" message on the Dead Letter Queue of the receiving Queue Manager. It has a feedback code: MQFB_COA.
The event log shows the following error:
Quote: |
"Report message could not be put on a reply-to queue.
The attempt to put a report message on queue AMQ.446DA75E012C0020 on queue manager ILS.TEST.QMGR1 failed with reason code 2087. The message will be put on the dead-letter queue.
Ensure that the reply-to queue is available and operational." |
I am looking this up in the MQ Messages document.
In the meanwhile, if you have some quick tips ... please fire away!
Thanks! |
|
Back to top |
|
 |
wschutz |
Posted: Fri May 19, 2006 5:55 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Lets start with:
Quote: |
However, when I try the runmqchl command from the command line, I get errors such as:
Quote:
5/19/2006 16:56:41 Channel program started.
5/19/2006 16:56:41 AMQ9502: Type of channel not suitable for action requested.
5/19/2006 16:56:42 AMQ9999: Channel program ended abnormally.
|
you can only start the sender (sdr) end of the channel with runmqchl. If you start the channels via the gui, i don't think you'll see any errors put out by the message exits.
Then:
Quote: |
The event log shows the following error:
Quote:
"Report message could not be put on a reply-to queue.
The attempt to put a report message on queue AMQ.446DA75E012C0020 on queue manager ILS.TEST.QMGR1 failed with reason code 2087. The message will be put on the dead-letter queue.
Ensure that the reply-to queue is available and operational."
|
So this probably means you don't have a path back from the "receiving qmgr" back to your sending qmgr. You need an xmitq and channel in the "opposite" direction of the "file moving flow" _________________ -wayne |
|
Back to top |
|
 |
bleed |
Posted: Thu May 25, 2006 12:23 am Post subject: |
|
|
Newbie
Joined: 19 May 2006 Posts: 4
|
Just to update you guys ...
We have abandoned the Reference Message approach.
Now, we are reading the file and passing the entire file as one big MQ Message. |
|
Back to top |
|
 |
wschutz |
Posted: Thu May 25, 2006 1:23 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Did you get it working? What was the reason for abandoning it? _________________ -wayne |
|
Back to top |
|
 |
bleed |
Posted: Thu May 25, 2006 11:01 pm Post subject: |
|
|
Newbie
Joined: 19 May 2006 Posts: 4
|
We could not get it working.
We suspect there was some problem with converting the CCSID for the IFS File. (The ConvertBulkData function of the Message Exit program was failing).
So, now we are converting the file to one big string and sending it as a normal message. (against sending the file as a reference message). |
|
Back to top |
|
 |
silent_hill |
Posted: Mon May 29, 2006 8:46 am Post subject: |
|
|
Guest
|
|
Back to top |
|
 |
my_mqseries |
Posted: Wed Jun 07, 2006 6:19 pm Post subject: |
|
|
Apprentice
Joined: 03 May 2006 Posts: 31
|
Hi
I have created Channels and necessary queues on two Queue Managers. I can see that they are both are in a Running status. I wanted to test whether these channels are working fine or not.
How can I test this please?
Thank You |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Jun 07, 2006 7:24 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
We hijack this post for this?
If the channels are "RUNNING" they are working fine. |
|
Back to top |
|
 |
my_mqseries |
Posted: Thu Jun 08, 2006 2:46 am Post subject: |
|
|
Apprentice
Joined: 03 May 2006 Posts: 31
|
How can do a simple test confirm that it is really transferring files please? |
|
Back to top |
|
 |
kevinf2349 |
Posted: Thu Jun 08, 2006 5:03 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Quote: |
really transferring files |
It doesn't transfer files. It transmits messages.
What is it that you are actually trying to do? |
|
Back to top |
|
 |
|