webMethods

 View Only
  • 1.  Event driven architecture

    Posted Thu July 31, 2008 04:08 PM

    I am using webMethods 7.1. I need to know how I can accomplish the following scenario -

    I am getting flat files via push/pull mechanism on local File system. As soon as I receive these files, I want to trigger another webMethods flow that processes these files.

    At a high level, I want to schedule only 1 job that gets these flat files and completes the entire process.

    Can somebody please assist me here?

    Thanks


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


  • 2.  RE: Event driven architecture

    Posted Thu July 31, 2008 08:04 PM

    You can try File polling ports approach as it is going to be on the local filesystem. You can specify the processing service in the file polling port configuration.


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


  • 3.  RE: Event driven architecture

    Posted Fri August 01, 2008 04:33 PM

    Any other suggestions here would be appreciated.


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


  • 4.  RE: Event driven architecture

    Posted Tue August 05, 2008 04:24 AM

    Hi Dgoel,

    you can have

    1. one schedule service look for that folder for any new files.
    2. Once a new file found, it can publish a document to notifi the new file arrival along with file name, folder and details.
    3. Develop a trigger service to consume the document based on the filename, or type invoke the trigger service. This way you can achieve multi threaded approach.

    Hope this helps :slight_smile:

    Regards,
    Rookie4WebM


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


  • 5.  RE: Event driven architecture

    Posted Tue August 05, 2008 04:47 PM

    I think file polling way is still better because you can do the multi threading with that too and additionally it takes care of the problem of processing half transfered file. In other words it perform all functions itself where in scheduling process you create the scehdule,Trigger, Broker document, etc.


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