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 » General IBM MQ Support » Problem in Using

Post new topic  Reply to topic
 Problem in Using « View previous topic :: View next topic » 
Author Message
jefflowrey
PostPosted: Thu Jul 06, 2006 6:56 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I do not, personally, consider the built-in file transfer application to be production ready.

It certainly doesn't have the security features that you might need in an enterprise - and as you yourself have discovered, it doesn't have the *flexibility* you need in an enterprise.

If you dig around a bit, you can find several other rants by me on the subject of file transfer in the Enterprise with MQ.

Your particular problem, however, should be solveable with batch file scripting. You should be able to do something to get a directory listing into a variable and then get the file name from that. If you can't figure out how to do this in windows batch scripting (and I can't help - I could do it in unix shell scripting), then you can look at some other language like Perl or Java and use the system() command to execute the AMQSPRM command from within that.

Heck, you should be able to do this from Ant scripting.

But, again, I would reevaluate your business requirements for this file transfer and consider using something else. Perhaps a commercial product that is designed to handle enterprise file transfers, perhaps a custom program that will move this data, perhaps the WebSphere Adapter for JD Edwards.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Jul 08, 2006 4:56 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I didn't mean that it's not secure to send a file by MQ - not at all.

What I meant is that the File Transfer program that is supplied with MQ is not secure. It doesn't know anything about security - it will send whatever file you tell it to send and save files anywhere you tell it to save them.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jeevan
PostPosted: Sat Jul 08, 2006 11:05 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

if you have to send every file in the directory, you can do like this:

for file in *;
do
place ur command and $file as file name

done

This will do it.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Jul 08, 2006 11:48 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Except that bharani4us is using Windows, not unix shell scripting.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jeevan
PostPosted: Sat Jul 08, 2006 12:52 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

yes. He can create equivalent DOS .bat file.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Jul 08, 2006 4:13 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I don't think the v6 File Transfer application is any more flexible.

Again, it's not something you should use to build a business system with!

Jeevan actually posted a skeleton of Unix shell script that will work. But I'm surprised you're using Linux because the paths you posted were "c:\" paths.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Problem in Using
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.