ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » file transfer

Post new topic  Reply to topic
 file transfer « View previous topic :: View next topic » 
Author Message
paustin_ours
PostPosted: Fri May 06, 2016 7:33 pm    Post subject: file transfer Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

We are looking into a solution where files coming on one server needs to be transferred to another server. The plan is to use the broker to listen on in the input directory and once a file comes in, pick it up and do a sftp to the destination server. we are doing sftp within java compute node calling jsch jar.

Does this sound like a good use of the broker?
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Fri May 06, 2016 7:42 pm    Post subject: Re: file transfer Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

paustin_ours wrote:
We are looking into a solution where files coming on one server needs to be transferred to another server. The plan is to use the broker to listen on in the input directory and once a file comes in, pick it up and do a sftp to the destination server. we are doing sftp within java compute node calling jsch jar.

Does this sound like a good use of the broker?

Not the right thing to do. If you are using broker (transforming the input in any way) you should not be doing an sftp from within a JCN but calling the File Output node, and letting it handle the sftp. This way you will be able to transfer huge files if needed.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
paustin_ours
PostPosted: Sun May 08, 2016 4:35 am    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

what about broker being a router of files? should broker be in the business of routing files?
Back to top
View user's profile Send private message Yahoo Messenger
vennela
PostPosted: Mon May 09, 2016 12:44 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Yes, intelligent routing is one of the best usages of broker
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zpat
PostPosted: Mon May 09, 2016 1:17 am    Post subject: Re: file transfer Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

paustin_ours wrote:
we are doing sftp within java compute node calling jsch jar.


Why would you even consider calling a jar file? The whole point of the broker is to provide everything built-in (other than in truly exceptional cirumstances).

The file output node (and you should use a FTP configurable service to hold the details - this can use SFTP) does everything you need.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon May 09, 2016 6:34 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Are you doing anything with the files other than moving them?

Are you using any information in them to figure out where they go? Are you doing anything to change them at all?

Are the files very large?

If all the answers to these questions are No, except the last one which is Yes, then you should consider something other than Broker. Because you aren't doing any function in Broker that can't be handled better, faster, and easier in a real file transfer solution.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
sumit
PostPosted: Mon May 09, 2016 9:21 am    Post subject: Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

I have seen one project using IIB *only* to sftp files from one folder to another. The file size was large and they faced a lot of issues.
If the intention is only to ftp a file, IIB is not the tool.
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
paustin_ours
PostPosted: Mon May 09, 2016 1:31 pm    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

we have a job that kicks of a trigger message and puts the message on a queue. This queue is read by a message flow. The message flow does a sftpget of files from a remote server and it all files are gotten it commits if not the flow sleeps and puts the message back to the input queue. then it tires ths sftget again until all files are gotten or a time of the say has reached.

we do sftp via jsch within the JCN.
Back to top
View user's profile Send private message Yahoo Messenger
ruimadaleno
PostPosted: Tue May 10, 2016 1:34 am    Post subject: Reply with quote

Master

Joined: 08 May 2014
Posts: 274

What is the requirements ?

JUST COPY the files from Source (A) to destination (B).

Any operating system has better tool to copy files rather then using IIB/Broker ...

Please elaborate on your requirements
_________________
Best regards

Rui Madaleno
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Tue May 10, 2016 1:50 am    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

requirement is to get files from source server and send to destination server. Source side can make the file available anytime. we poll all day or a specific amount of time. we do this by doing a sftp ls via the broker JCN calling jsch. then when we see files we sftp to broker server, then sftp again to destination server.

that is the requirement.
Back to top
View user's profile Send private message Yahoo Messenger
ruimadaleno
PostPosted: Tue May 10, 2016 2:06 am    Post subject: Reply with quote

Master

Joined: 08 May 2014
Posts: 274

paustin_ours wrote:
requirement is to get files from source server and send to destination server. Source side can make the file available anytime. we poll all day or a specific amount of time. we do this by doing a sftp ls via the broker JCN calling jsch. then when we see files we sftp to broker server, then sftp again to destination server.

that is the requirement.


You are doing simple file copy operations. I think broker is not the right tool for this job
_________________
Best regards

Rui Madaleno
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue May 10, 2016 5:34 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

ruimadaleno wrote:
paustin_ours wrote:
requirement is to get files from source server and send to destination server. Source side can make the file available anytime. we poll all day or a specific amount of time. we do this by doing a sftp ls via the broker JCN calling jsch. then when we see files we sftp to broker server, then sftp again to destination server.

that is the requirement.


You are doing simple file copy operations. I think broker is not the right tool for this job



_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Tue May 10, 2016 6:58 am    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

we don't want to write one of sftp applications either. We want this solution to be reusable, configurable and the destination de-coupled as in can we looked up and then routed to. how could we achieve this is we have sftp applications/scripts running on the server.
Back to top
View user's profile Send private message Yahoo Messenger
timber
PostPosted: Tue May 10, 2016 7:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

I don't think an SFTP tool + custom scripts is the correct answer either. But there are some great 'managed file transfer' tools out there, including one from IBM that works really nicely with MQ and IIB:
http://www-03.ibm.com/software/products/en/wmq-fte
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Tue May 10, 2016 7:38 am    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

I have been pushing for that as well but wanted to know if there are other options. thanks for the input.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » file transfer
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.