Book Image

Oracle Service Bus 11g Development Cookbook

Book Image

Oracle Service Bus 11g Development Cookbook

Overview of this book

Oracle Service Bus 11g is a scalable SOA integration platform that delivers an efficient, standards-based infrastructure for high-volume, mission critical SOA environments. It is designed to connect, mediate, and manage interactions between heterogeneous services, legacy applications, packaged solutions and multiple Enterprise Service Bus (ESB) instances across an enterprise-wide service network. Oracle Service Bus is a core component in the Oracle SOA Suite as a backbone for SOA messaging. This practical cookbook shows you how to develop service and message-oriented (integration) solutions on the Oracle Service Bus 11g. Packed with over 80 task-based and immediately reusable recipes, this book starts by showing you how to create a basic OSB service and work efficiently and effectively with OSB. The book then dives into topics such as messaging with JMS transport, using EJB and JEJB transport, HTTP transport and Poller transports, communicating with the database, communicating with SOA Suite and Reliable Message Processing amongst others. The last two chapters discuss how to achieve message and transport-level security on the OSB.
Table of Contents (19 chapters)
Oracle Service Bus 11g Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using the File or FTP transport to trigger a proxy service upon arrival of a new file


In this recipe, we will trigger a proxy service upon arrival of a file in a certain location. We will implement both, a proxy service listening on a folder in a local filesystem as well as one listening to a remote location via FTP.

Getting ready

In order to make working with the FTP example as simple as possible, we first install a simple local FTP server:

  1. From http://coreftp.com/server/index.html, download the Core FTP Server.

  2. Start the installer and click through it (leave all options on default).

  3. Create a folder C:\work\ftp.

  4. Launch the Core FTP Server executable.

  5. Click on Setup.

  6. Click on New.

  7. Enter OSB in the Domain Name field.

  8. Enter localhost in the Domain IP/Address field.

  9. Enter C:\work\ftp in the Base directory field.

  10. Click on OK .

  11. Back on the main setup window, select the newly created domain and click New on the lower half of the window, to create a user.

  12. Enter osb in the User name field.

  13. Enter osb in the...