|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
File transfers using FTA |
« View previous topic :: View next topic » |
Author |
Message
|
cescobar |
Posted: Mon Apr 02, 2007 8:11 am Post subject: File transfers using FTA |
|
|
Newbie
Joined: 02 Apr 2007 Posts: 3 Location: Santiago, Chile
|
Hello people:
Is there an API that can act like the File Transfer Agent which i can use to include file transfering in my applications whithout the need to use external programs?
edit: I meant an API for C/C++/Java or another language, I'd prefer to have it in C++ since our apps are written in C++
thanks
Carlos _________________ There are 10 types of people...
...those who understand binary...
...and those who don't.
--"I'm the 3rd!! yay!" |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 02, 2007 11:48 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
MQ is not really a "file transfer" system. It's a messaging system.
It's much better for your programs to write messages directly to MQ than to write them to files, and then have to try and move the files. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
cescobar |
Posted: Mon Apr 02, 2007 12:37 pm Post subject: |
|
|
Newbie
Joined: 02 Apr 2007 Posts: 3 Location: Santiago, Chile
|
well jeff, i know that, but i also know that if you combine the reasonably powerful security of MQ you can get a very secure file transfer system, specially when MQ is your only option for communications, the problem is a special netadmin who won't allow us to use ftp across the network in which we are coding our programs, so there's not much of a choice there, and if i was to write binary data messages how can i then transport them back to a file? _________________ There are 10 types of people...
...those who understand binary...
...and those who don't.
--"I'm the 3rd!! yay!" |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 02, 2007 12:44 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Message data is just a big long buffer of data. That data can be written to a file or read from a file without regard for whether the data is binary, or text. One just needs to indicate that the message data should be treated as string data if it's text, or not treated as string data if it's not. MQFMT_STRING or MQFMT_NONE, basically.
Also, MQ does have a reasonably good set of security for certain things... but it may not be sufficient for a full scale Enterprise File Transfer system. I'm not saying "don't use MQ to move files", I'm just saying "make sure you know what your actual requirements for moving files is, first".
The presupplied file transfer program that comes with MQ does things like automatically segment files into smaller messages and reassemble messages into a larger file. It does a few other things that you'll otherwise have to write yourself.
There is not a presupplied API, nor sample code, AFAIK that you can include or use in your program to accomplish all the same things. You'll have to write it by hand - or use system()... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
cescobar |
Posted: Mon Apr 02, 2007 1:00 pm Post subject: |
|
|
Newbie
Joined: 02 Apr 2007 Posts: 3 Location: Santiago, Chile
|
well guess what, that solved it, thanks a lot jeff, didn't know exactly what the mqfmt thingy was doing and well, it was taking the binary data and passing it as string, so there it must have been losing some special chars  _________________ There are 10 types of people...
...those who understand binary...
...and those who don't.
--"I'm the 3rd!! yay!" |
|
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
|
|
|
|