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 Transport to write to a file


In this recipe, we will write a file to the local filesystem (local to the OSB server). We will implement a business service which uses the File Transport to do that. Additionally, we will create a proxy service and control the filename of the file being written by using a Transport Header action.

Getting ready

No special actions necessary.

How to do it...

We begin with a business service writing a file to a local folder. In Eclipse OEPE, perform the following steps:

  1. Create a new OSB project and name it using-file-transport-to-write-to-file.

  2. Create a business folder in that new project.

  3. In the business folder create a new business service named WriteToLocalFile.

  4. On the General tab select Messaging Service as the Service Type option.

  5. Navigate to the Messaging tab and select Text as the Request Message Type.

  6. Leave the Response Message Type on None.

  7. Navigate to the Transport tab and select file from the Protocol drop-down list.

  8. Enter file:///C:/work/destination...