On Thu, 22 Jan 2004 18:25:26 -0800, Emerson, Tom
<[log in to unmask]> wrote:
> 2) install an already-written generic java based "client" that takes, as
parameters, the name of a file and a queue to write to and "just does it"
>
Tom,
Don't know if this concept is of interest to you.
I have written a very, very basic ftp server in java. Unfortunately, the
code is barried on my office pc which I will not be back at until monday. I
could try find it then if you are interested in it.
If you can't wait, or I am not able to find the code, I found a free java
ftp server that you might be able to use:
http://www.progsoc.uts.edu.au/~rheise/projects/jftpd/
Now to the concept:
Would it work for you to tap into the code of a java ftp server that resides
on another pc/server other than the 3000. When you need to send to MQ, ftp
the file from the 3000 to the ftp server either manually or from a job.
Now inside the ftp server code you will need to find the logic where a file
is received. In the above mentioned package it appears to be in the
"ServerDTP.receiveFile(String path)" class/method. You will have access to
the socket in this routine. Instead of letting it write to a file, you can
put the MQ logic in this class/method and write to the MQMessage and then
send it off to the MQServer.
This may be a bit cludgey, but I really think you could make it work without
alot of effort. I would be willing to talk you through it.
If you still have to write the MQ logic, I have some source I could share.
Let me know if this sounds interesting.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|