Author |
Message
|
tnana |
Posted: Wed Oct 10, 2007 8:48 am Post subject: MQFTRCV and MQFTRCVC |
|
|
Novice
Joined: 06 Oct 2004 Posts: 14
|
Hi,
I have already searched and did not find any answer to my issue.
I have a queue manager on Linux box where MQFTRCV works fine.
I tried to run MQFTRCVC from a W2K3 box where MQ Server 6 is installed.
I set MQSERVER variable and tried this command:
mqftrcv -q THE_QUEUE -m THE_QM -l
But got error: AMQ7780: Cannot connect to queue manager 'THE_QM'
Then I set GMQ_MQ_LIB=mqic32.dll to force to use MQ Client on this machine where server is also installed. But I got same error.
Then I tried from a Windows XP machine where only MQ Client 6 is installed but getting same error.
Don't want to use MQFTRCV on Linux box as the ultimate target for the file is W2K3. Don't want to have Samba mount if not absolutely necessary.
Any ideas ?
Thanks |
|
Back to top |
|
 |
tnana |
Posted: Wed Oct 10, 2007 12:09 pm Post subject: Re: MQFTRCV and MQFTRCVC |
|
|
Novice
Joined: 06 Oct 2004 Posts: 14
|
tnana wrote: |
I set MQSERVER variable and tried this command:
mqftrcv -q THE_QUEUE -m THE_QM -l
|
Correction.
The command should read
mqftrcvc -q THE_QUEUE -m THE_QM -l[/b] |
|
Back to top |
|
 |
mvic |
Posted: Wed Oct 10, 2007 12:38 pm Post subject: Re: MQFTRCV and MQFTRCVC |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
To progress with such an issue you'll need to take a look in the AMQERR01.LOG files on client and server.
By the way, I think GMQ_MQ_LIB relates only to applications on Windows using the COM classes (ie. MQAX200.DLL) .. correct me if I'm wrong. If I got this right, it should not have any effect on applications coded using the C MQI. |
|
Back to top |
|
 |
tnana |
Posted: Fri Oct 12, 2007 12:37 pm Post subject: Re: MQFTRCV and MQFTRCVC |
|
|
Novice
Joined: 06 Oct 2004 Posts: 14
|
mvic wrote: |
To progress with such an issue you'll need to take a look in the AMQERR01.LOG files on client and server.
By the way, I think GMQ_MQ_LIB relates only to applications on Windows using the COM classes (ie. MQAX200.DLL) .. correct me if I'm wrong. If I got this right, it should not have any effect on applications coded using the C MQI. |
Thanks.
I could not find anything in the AMQERR01.LOG
I started trace in the server and found that it was authorization issue.
Once the user on Windows was granted permission to connect to queue manager and queue, the MQFTRCVC worked and returned list of files. |
|
Back to top |
|
 |
tnana |
Posted: Thu Oct 25, 2007 10:47 am Post subject: Re: MQFTRCV and MQFTRCVC |
|
|
Novice
Joined: 06 Oct 2004 Posts: 14
|
tnana wrote: |
Once the user on Windows was granted permission to connect to queue manager and queue, the MQFTRCVC worked and returned list of files. |
Tested with just listing the files and then modified to extract files and send notification e-mail.
But we receive 6 e-mail messages for 3 files.
We receive 3 files on the queue at certain time of the day and script gets called. So I can understand getting 3 e-mail messages. But the script gets called 3 more times. It does not hurt as it just copies same files again but getting 3 more e-mail messages is annoying.
I'm wondering why does MQ put extra trigger messages on the initiation queue.
Thanks for any help. |
|
Back to top |
|
 |
|