Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Mediator Service for Straight... > Processing Files with Appointment Re...

Processing Files with Appointment Requests

Some family doctors will send the requests for appointments for their patients once per day in a single file with comma-separated records. This file can be uploaded via a website or sent as an e-mail attachment to a central e-mail address at St. Matthews. These files are collected in a shared directory and need to be processed. The individual appointment requests that possibly arrive in batch files need to be turned into calls to the Patient Appointment Service we discussed in the previous chapter.

Introducing the Mediator and the File Adapter: Routing and Transformation

Using the file adapter, we can create services with the capability to read incoming files and turn the records in these files into XML messages—or that write files in various formats based on inbound XML messages. The File Adapter Service we will create reads from files. It is wired to a Mediator component that routes incoming messages fed in by the file adapter to consuming services. The File Adapter Service could also start BPEL process instances; however, consider it a best practice to link adapter services to Mediators that perform forwarding and transformation of the XML messages produced by the adapter services.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint