HP3000-L Archives

January 2004, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Evan Vaala <[log in to unmask]>
Reply To:
Evan Vaala <[log in to unmask]>
Date:
Sat, 24 Jan 2004 01:10:57 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (43 lines)
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 *

ATOM RSS1 RSS2