webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

File polling in Remote machine

  • 1.  File polling in Remote machine

    Posted Mon July 31, 2006 06:40 PM

    Hello,

         I am running wM 6.1 with  IS_6-1_FP2,IS_6-1_SP1 updates on       OS -Windows 2003,  OS Platform - x86, version - 5.2
    
    I need to poll for files in remote machine, but I have problem when enabling port for remote m/c. However, if port details changed to local machine, it works fine. 
    

    Port config details for remote m/c:

       Monitoring Directory : \\XXX.XX.X.XX(IP address)\SalesOrder\MonitorDir 
    

    Works good in Port config with local machine details:

      Monitoring Directory : D:\SalesOrder\MonitorDir  
    
    FYI, using (MS-DOS) from same local machine instead of IS, I could ping remote m/c and read/write files to remote folder.
    
    Also, for testing tried  IP address of same local m/c, but did not work.
    

    Any suggestion/help would be greatly apprecaited.

    Thanks,
    Siva


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: File polling in Remote machine

    Posted Mon July 31, 2006 06:58 PM

    The file listening port does not support UNC names. To poll a remote directory, the directory must be mounted as a local drive.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: File polling in Remote machine

    Posted Mon July 31, 2006 07:13 PM

    Rob,

        Could you please provide more explanation, alternatively how I can acheive this.
    

    Thanks in advance for your time and help.

    -Siva


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: File polling in Remote machine

    Posted Mon July 31, 2006 09:15 PM

    For a Windows machine, you’ll need to map a drive to the remote machine. This map must be a “system” map so that it is available to services. Your IS service will need to logon as a user that has rights to the network and to that network share. For a Unix machine, simply mount the drive.

    Another approach is to use FTP instead of a file share. You’d need to write some services to implement the polling over an FTP connection.


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 5.  RE: File polling in Remote machine

    Posted Tue August 01, 2006 09:44 PM

    For polling a remote directory I would definitely recommend scheduled FTP rather than a file polling port. Among other things, if a network problem were to leave the directory is unavailable at the time of polling, IS may disable the listener. There are a number of other potential problems, especially in Windows, including the tendency for a file to be left open and therefore inaccessible if an unexpected event occurs during processing. My 2 cents,

    Tim


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 6.  RE: File polling in Remote machine

    Posted Tue August 01, 2006 10:34 PM

    I agree. Network shares used by IS generally give me the heebie jeebies.


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 7.  RE: File polling in Remote machine

    Posted Wed August 02, 2006 01:57 AM

    Tim,
    I very much agree your suggestions. But,for various reasons like scheduled backup, error monitoring for files, my network folder has to located in AS/400 machine. It is maintained by another team, who has ownership. Hence, IS has to poll for files in network folder.

    Reamon,
    IS NT service runs as user who has admin rights on Windows as well on AS/400. So, it is the same user been used to overcome the conflict.

             I need more idea, as you mentioned in this thread, "the map must be a "SYSTEM" map". Could you please explain in detail, how I can achieve System map. 
    

    Thanks,
    SIva


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: File polling in Remote machine

    Posted Wed August 02, 2006 02:47 AM

    My guess is the 400 is running an FTP server. Would using an FTP poll be possible? It is a better approach, IMO.

    Looks like I was wrong on the UNC usage though. I thought I remembered that file polling did not support UNC names but I cannot find any reference to that. Additionally, this SR on Advantage indicates that UNC names can indeed be used. The user account that the IS service runs under must be a domain account and be a member of the local Administrators group. Haven’t tried it myself though. Give it a try and let us know if that gives IS the access it needs.

    P.S. Forgot to mention that the network share on the 400 needs to be addressable using UNC naming. Not sure how that’s done. This discussion forum appears to have some info along these lines.


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 9.  RE: File polling in Remote machine

    Posted Wed August 02, 2006 02:59 PM

    I was able to get the UNC paths to work between two Windows boxes, with both host names and IP addresses. The AS/400 is another animal altogether. I suspect that something like Samba would need to be running on that box to allow the share to work, but that’s out of my realm of expertise.

    I can see why there would be reasons for the monitoring directory to stay on the remote machine. I’m not sure why that prevents using FTP. It’s not too difficult to set up. HTH,

    Tim


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 10.  RE: File polling in Remote machine

    Posted Wed August 02, 2006 05:32 PM

    Tim,
    I would apprecaite, if you can highlight some idea and provide reference, How to set up FTP polling similar to File poll?

            Can I configure FTP port in IS similar to File polling port and include processing flow service? Need some implementation tips.
    

    Thanks in advance for your help.
    Siva


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 11.  RE: File polling in Remote machine

    Posted Wed August 02, 2006 05:51 PM

    Rob,
    Thanks for the inputs. Tried earlier both of the tips you have referenced.

    – webMethods IS NT service is running on user who has local admin privilages and same user had admin rights in AS/400.

    — Based of tip 2: using Netwrok Map tool in Windows explorer could able to map AS/400 network drive and as well in cmd “Run” prompt able to access.

    However, webMethods could not. Not sure why, and things seems dark to me now.

    Thanks,
    Siva


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 12.  RE: File polling in Remote machine

    Posted Wed August 02, 2006 07:40 PM

    Siva,

    You would write a service that invokes services in the pub.client.ftp folder. Minimally you would need to login, change to your monitoring directory, get or mget the file(s) you need and logout. The Integration Server Built-in Services reference documents all of these services. You would then go to the Scheduler on the IS Admin page and set up a job to run this service at whatever interval you were going to use for the file poller.

    Tim


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 13.  RE: File polling in Remote machine

    Posted Wed August 02, 2006 07:56 PM

    “Can I configure FTP port in IS similar to File polling port and include processing flow service? Need some implementation tips.”

    Yes configure a FTP port say example:8021 using IS Admin UI/ports.As metioned above regarding scheduled FTP you should create custom flows utilizing WmPublic (pub.client.ftp) folder services and test the functinality,

    HTH,
    RMG


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 14.  RE: File polling in Remote machine

    Posted Wed August 02, 2006 08:48 PM

    Tim, Rob,
    Thanks for the tips. Let me try this way and have as an alternate approach.

          I will keep you posted once I am done.
    

    Thanks,
    Siva


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 15.  RE: File polling in Remote machine

    Posted Wed August 02, 2006 09:16 PM

    This is not correct. An FTP port does not poll like a file polling port. You do not need an FTP port to poll an FTP server. An FTP port listens for inbound FTP sessions only and is not used for “outbound” FTP activity.


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 16.  RE: File polling in Remote machine

    Posted Wed August 02, 2006 10:06 PM

    Rob,

    I didnt mean configure FTP port will act polling like a file polling port…I agree,it is used for Inbounds only(in case they have inbound transmissions) and for outbound we just need to make use of client.ftp services…

    Sorry!! no confusion.

    HTH,
    RMG


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods