IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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
  • 1.  Write file to a Shared Drive

    Posted Fri October 21, 2011 07:09 PM

    Hello All,

    i know that some one had already faced this issue and worked on it to resolve this. But, now I am facing this issue and couldn’t find any solution. So, please help me out ASAP.

    Issue: need to write a file on a network shared drive
    Env: wM 8.2
    Source file location: its from Unix box
    Target file location: to network shared drive and I am using my credentials to run the service as i have read/write permission to that drive (NO FTP on shared drive server)

    Tries: 1) I tried using the writeToFile(custom java & wMSamples Pkg service) but no luck
    2) My inputs are Z:\Test (its a network shared and I mapped it to my IS as my IS runs on windows machine)
    3) Used IP of the shared drive server but no luck

    Any thoughts are appreciated.

    Thanks.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Write file to a Shared Drive

    Posted Fri October 21, 2011 09:28 PM

    Hello,

    To write a file from unix OS to windows OS you need to have a mount point created on unix(that points to windows shared location). Talk to your unix/linux admin to create mount point for you.
    Also its not your userID that need to have access but the userID of the linux box(where your webM is running) that need to have access.

    Once these are done then you can use the url which looks like usr/local/{mountpointname} to write your file.

    Thank you,
    Anil


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 3.  RE: Write file to a Shared Drive

    Posted Sat October 22, 2011 01:33 AM

    Mapped drives work only for logged in users, not Windows services (even if the service uses logon as credentials).

    Use a UNC name to refer to the network share. \servername\dirname\file

    I usually avoid using network shares (Windows) and mounts (Unix) in integrations. They can be flaky and a pain to troubleshoot.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB