Author |
Message
|
rglack10 |
Posted: Wed Aug 03, 2011 9:54 am Post subject: Most Appropriate Java API/CLASSfor FTP interaction with Z/OS |
|
|
Apprentice
Joined: 06 Jul 2011 Posts: 34
|
Hi,
As the title states is there anyone who can give some info on which is the best JAVA API/CLASS for FTP interaction with Z/OS from a JCN node within a message broker flow? The broker will be windows/aix based.
I am aware of the file nodes input and output etc... This is a very specific task we want to achieve which is simply when a trigger is received in a message flow, log onto a z/os MF box and remotely FTP a file back to the broker within the same flow. We do not want the flow polling on a timed period basis only to perform a single read when the trigger is received hence why we are not using the fileInput node.
so.. TRIGGER INPUT > JCN NODE(FTP GET) > OUTPUT ...
I am amazed the new FileRead node does not offer this...
I have tried some variations of class in a JCN with limited success such as
URL
FTP Client
SUN TELNET CLASS etc
I am getting niggly errors with each way. Has anyone done this before?
Any constructive comments appreciated!  |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 03, 2011 10:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Why not use the trigger message to start a flow with a FileInput node on the front which does the ftp? This would prevent polling.
I'll leave others more qualified to advise on your actual question.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
rglack10 |
Posted: Wed Aug 03, 2011 10:10 am Post subject: |
|
|
Apprentice
Joined: 06 Jul 2011 Posts: 34
|
Vitor wrote: |
Why not use the trigger message to start a flow with a FileInput node on the front which does the ftp? This would prevent polling.
I'll leave others more qualified to advise on your actual question.  |
Hi Vitor,
We have thought of this and it is a consideration however I am not a fan of having administration commands in message flows etc... Never have been.
But it could be a last resort but hopefully not necessary. I've just downloaded apache commons net which has good ftp and I will try this and see if it is any better.
I am hoping some java folk will bite at this because whilst I have done JCN etc I haven't done FTP before and I want to ensure a robust node and FTP method...
Thanks for your reply. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 03, 2011 10:11 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
Why not use the trigger message to start a flow with a FileInput node on the front which does the ftp? |
I hope you mean "use the trigger message to call a CMP API application that starts a message flow". Otherwise, you've said something that doesn't work.
I would upgrade to 7.0.0.2 and use the FileGet node, myself. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 03, 2011 10:14 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
Vitor wrote: |
Why not use the trigger message to start a flow with a FileInput node on the front which does the ftp? |
I hope you mean "use the trigger message to call a CMP API application that starts a message flow". Otherwise, you've said something that doesn't work. |
Ok, not having the best day in terms of communication. Or anything else. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 03, 2011 10:15 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
rglack10 wrote: |
We have thought of this and it is a consideration however I am not a fan of having administration commands in message flows etc... Never have been. |
It's a valid point and a valid position.
I am hoping some java folk will bite at this because whilst I have done JCN etc I haven't done FTP before and I want to ensure a robust node and FTP method... [/quote]
I'm sure one will be along in a minute. Place is full of them.... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
rglack10 |
Posted: Wed Aug 03, 2011 10:16 am Post subject: |
|
|
Apprentice
Joined: 06 Jul 2011 Posts: 34
|
mqjeff wrote: |
Vitor wrote: |
Why not use the trigger message to start a flow with a FileInput node on the front which does the ftp? |
I hope you mean "use the trigger message to call a CMP API application that starts a message flow". Otherwise, you've said something that doesn't work.
I would upgrade to 7.0.0.2 and use the FileGet node, myself. |
We are on 7.0.0.2, do you mean the FileRead node? See above comment regarding that... |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 03, 2011 10:18 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
rglack10 wrote: |
mqjeff wrote: |
Vitor wrote: |
Why not use the trigger message to start a flow with a FileInput node on the front which does the ftp? |
I hope you mean "use the trigger message to call a CMP API application that starts a message flow". Otherwise, you've said something that doesn't work.
I would upgrade to 7.0.0.2 and use the FileGet node, myself. |
We are on 7.0.0.2, do you mean the FileRead node? See above comment regarding that... |
Hrm.
I guess I did mean the FileRead node - my fingers always want to type it out as FileGet.
And I'm just as surprised that it doesn't do FTP... I had thought it did.
I guess it's not just Vitor's day for not having a good day. |
|
Back to top |
|
 |
rglack10 |
Posted: Wed Aug 03, 2011 10:20 am Post subject: |
|
|
Apprentice
Joined: 06 Jul 2011 Posts: 34
|
mqjeff wrote: |
rglack10 wrote: |
mqjeff wrote: |
Vitor wrote: |
Why not use the trigger message to start a flow with a FileInput node on the front which does the ftp? |
I hope you mean "use the trigger message to call a CMP API application that starts a message flow". Otherwise, you've said something that doesn't work.
I would upgrade to 7.0.0.2 and use the FileGet node, myself. |
We are on 7.0.0.2, do you mean the FileRead node? See above comment regarding that... |
Hrm.
I guess I did mean the FileRead node - my fingers always want to type it out as FileGet.
And I'm just as surprised that it doesn't do FTP... I had thought it did.
I guess it's not just Vitor's day for not having a good day. |
My day hasn't been much better with this issue... Maybe someone from the labs can update why no remote file read etc.. it does seem odd.. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 03, 2011 10:33 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The basic java FTP classes should be fine.
Presumably the lack of remote file support in FileRead is a matter of development timing, rather than long term intent.
Of course, only the lab knows that for sure, and they're not allowed to say. |
|
Back to top |
|
 |
|