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 » FileInput readonly permission and pattern

Post new topic  Reply to topic
 FileInput readonly permission and pattern « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Thu May 29, 2008 2:03 am    Post subject: FileInput readonly permission and pattern Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi Please help, I have thee problems.

1. I have a fileinput node that uses ftp to get a file. the permision on the server is rw for this user that I am connecting to the ftp server with and read only for his group, which my broker user is part of. I am getting permission errors when trying to read this file. Is this node using broker user name to read and archive the file, or the ftp user id to read and archive. IT doesn't look like it is using the ftp user set on the dbparam. Only for connecting to the server.

2. Is there anyway that fileinput node can only read a file and not try to archive or delete it?

3. Filename or Pattern I need to pull a directory that has 31 files , 1 , 2 ,3 .... these are the filenames. The pattern is the file created today will have todays date(day). So I need to find a pattern I can use to pull only $day file. Is this possible...? I have tried so many patterns but I am not winning.
Back to top
View user's profile Send private message
mqpaul
PostPosted: Thu May 29, 2008 3:08 am    Post subject: Re: FileInput readonly permission and pattern Reply with quote

Acolyte

Joined: 14 Jan 2008
Posts: 66
Location: Hursley, UK

Quote:

1. I have a fileinput node that uses ftp to get a file. the permision on the server is rw for this user that I am connecting to the ftp server with and read only for his group, which my broker user is part of. I am getting permission errors when trying to read this file. Is this node using broker user name to read and archive the file, or the ftp user id to read and archive. IT doesn't look like it is using the ftp user set on the dbparam. Only for connecting to the server.


The FileInput node connects to the FTP server using the userid from the FTP configurable service or the node FTP properties (see the broker Help Center for details). As that user, it gets the file from the remote site with FTP. Then the broker (running as the broker userid) stores a copy of the file in the local input directory (as specified on the node Directory property). It reads this local copy and moves it to the archive directory. So the directory and file permissions must be set locally for the broker userid, and remotely for the FTP connection userid.

If that doesn't help, please post the messages you get.

Quote:
2. Is there anyway that fileinput node can only read a file and not try to archive or delete it?


No.

Quote:
3. Filename or Pattern I need to pull a directory that has 31 files , 1 , 2 ,3 .... these are the filenames. The pattern is the file created today will have todays date(day). So I need to find a pattern I can use to pull only $day file. Is this possible...? I have tried so many patterns but I am not winning.


Not easily. The pattern is a FileInput node property, and there's no way for a program to change it. The nearest thing you can do is to match all the files and include logic in your flow to reject those whose names (in LocalEnvironment.File.Name) are not for today's date. However, you have to decide what to do with the files you don't want to process. If the flow completes successfully, it will move them to mqsiarchive, even though you did not actually want to process this file. If the flow fails, it will move it to mqsibackout. There's no way to leave the file in the input directory (see my answer to your point 2).
_________________
Paul
Back to top
View user's profile Send private message
matuwe
PostPosted: Thu May 29, 2008 3:35 am    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Thanks for the quick response.

I am a little stuck now with the read only, the ftp remote server only gives me permission to read and they do not want to change that. Must I reather have a Custom Java node that will just read the file , copy it to the local server and I can use the Fileinput to read and archive it.
Back to top
View user's profile Send private message
mqpaul
PostPosted: Thu May 29, 2008 3:42 am    Post subject: The FileInput node has to delete the remote file after FTP Reply with quote

Acolyte

Joined: 14 Jan 2008
Posts: 66
Location: Hursley, UK

The FileInput node scans the remote FTP directory every time the polling interval expires. It has to delete the files it gets from the remote directory, or otherwise it would repeatedly get and process the same file. So it needs r/w access to the remote directory.

The same logic applies to the local directory. That's why you must either delete or archive the file; if the node left the file in the input directory, it would repeatedly process it.
_________________
Paul
Back to top
View user's profile Send private message
matuwe
PostPosted: Thu May 29, 2008 6:27 am    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Thanks a mill. Now that I understand what actualy happends in the background. It's working now. much appreciated,
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 » WebSphere Message Broker (ACE) Support » FileInput readonly permission and pattern
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.