Author |
Message
|
gh |
Posted: Tue Aug 15, 2006 11:25 pm Post subject: File Transfer Tool |
|
|
Novice
Joined: 12 Aug 2006 Posts: 14 Location: eq
|
Hi All,
I'm facing problem with file transfer tool.
mqftrcvc (Receive file on client) - not working with Non-Default Queue manager.
Can someone help me  |
|
Back to top |
|
 |
sebastianhirt |
Posted: Tue Aug 15, 2006 11:29 pm Post subject: Re: File Transfer Tool |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
gh wrote: |
Can someone help me  |
Oh yes, Mr Manual can help you. And he is really irritated that you didn't ask him in the first place. That's at least what he told me.
Try this:
Code: |
Optional parameters
-m QMgrName
The name of the queue manager that hosts the destination queue. A queue manager that does not have the File Transfer Application installed can be specified. If you omit this parameter, the default queue manager is used. |
|
|
Back to top |
|
 |
gh |
Posted: Wed Aug 16, 2006 12:00 am Post subject: File Transfer Tool |
|
|
Novice
Joined: 12 Aug 2006 Posts: 14 Location: eq
|
I'm already using that parameter but it's giving me error.
Command i've used : mqftrcvc -q Queue1 -m QM2 -e
Error : AMQ7780: Cannot connect to queue manager 'QM2' |
|
Back to top |
|
 |
sebastianhirt |
Posted: Wed Aug 16, 2006 12:26 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
Ah, ok. In this case I appologize for the sarcasm.
Have you tried some of the sample programms?
If the queue manager is not local to you. Have you set MQSERVER or the Channel tab correctly? |
|
Back to top |
|
 |
gh |
Posted: Wed Aug 16, 2006 12:50 am Post subject: File Transfer Tool |
|
|
Novice
Joined: 12 Aug 2006 Posts: 14 Location: eq
|
It's ok
Let me tell you current situation.
I've Two Queue manager on single server and I want to access both QMs from the system where MQ Client 6.0 installed.
mqftrcvc is working fine for First Queue manager that is Default Queue manager.
Could you plz tell me what should I set in MQSERVER if I want to access multiple Queue managers. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 16, 2006 12:53 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
AFAIK MQSERVER only allows a connection to a single queue manager. To connect to multiple qms from a client you'll need a client connection table.
And I'm unconvinced (though ready to be convinced) that the file transfer tool as supplied will work this way.....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gh |
Posted: Wed Aug 16, 2006 1:15 am Post subject: File Transfer Tool |
|
|
Novice
Joined: 12 Aug 2006 Posts: 14 Location: eq
|
Thanks Vitor
I've to use this Tool beocz some other application will put files in Queues of different Queue manager and my application will dump those files on client machine to read them.
Please suggest if you could do this in some other way. |
|
Back to top |
|
 |
sebastianhirt |
Posted: Wed Aug 16, 2006 1:24 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
If all you really want to do is reading files from a queue, ther are two solutions on top of my head. (There might be even more)
PM4DATA is a product that is designed to load and unload files from queues. It is originally designed as add-on to the Message Broker, but might do for your purposes as well.
Writing your own application. In Java this is a rather easy job to do. (A lot of things to think about though) |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 16, 2006 1:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Files placed in queues are just messages. They can be moved around in any number of ways - it's what MQ does!
So all you need to do is either a) move all the files to a single queue manager via MQ where your client app will read them or b) use a client connection table to link your client to the other queue managers and read them.
There are many ways to achieve this, and more options than those two if you think about it. Publications like the Clients & Intercommunication manuals will be your friends in this endevour.
Happy Reading!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|