Chapter 6. Using File and Email Transports

In this chapter, we will cover:

  • Using the File or FTP Transport to trigger a proxy service upon arrival of a new file
  • Using the File JCA adapter to read a file within the message flow
  • Using the File or FTP Transport to write a file
  • Using Email Transport to receive e-mail
  • Using Email Transport to send e-mail

Introduction

In this chapter, we will cover the so called Poll-based transports, the File or FTP Transport, the Email Transport, as well as the File JCA adapter.

As the name implies, the File or FTP Transport can be used to do operations on files. When using the File Transport, the file needs to be local to the OSB Server or reachable via a file share, whereas when using the FTP Transport , the file can be on any FTP server reachable from the OSB. When using these transports on a proxy service, then the given location will be constantly polled for new files, and each file will be processed by the message flow of the proxy service. When the two transports are used on a business service, then a file will be written to the configured location upon invoking the business service.

The File JCA adapter allows treating the operation on a file as a service, which also allows for the reading of a file through a service invocation in the message flow of a proxy service.

The Email Transport supports both, the receiving as well as the sending of e-mails, with or without attachments. Using the Email Transport with a proxy service will consume new e-mails from an e-mail server whereas using the Email Transport on a business service will send an e-mail through the given e-mail server.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset