Use WebSphere Enterprise Service bus and WebSphere Adapter for Flat Files
Before you start
In a service-oriented architecture (SOA), it is best practice to use an enterprise service bus (Enterprise service bus,esb) to perform application connectivity and detach service consumers from service providers. There are many scenarios in which you need to use flat files to integrate systems and applications.
This tutorial teaches you how to design and implement WEBSPHERE®ESB mediations to connect file-based service consumers to service providers. Using the WebSphere integration Developer, you will learn how to build a file-based adapter module, create a target service, and build a connection mediation flow component.
The scenario used in this tutorial is based on a simplified banking system. The service provider will simulate a demand deposit account credit service. To invoke its Docredit action, you need a credit object that consists of an account number, a sortcode, and a currency amount. The service consumer uses a separate file that contains the three required values.
This tutorial is divided into four tasks:
Use the Enterprise service Discovery to create a flat file adapter module.
Create a Demo account credit service.
Create a mediation flow component.
Test the solution.
You can also download the completed Solution Workspaceflatfilemediation.zip and import it into the WebSphere integration Developer.
Task 1: Run Enterprise Service Discovery
During this task, you will use the Enterprise Service Discovery Wizard to import the Flat File resource adapter into a Java EE Connector project and associate it with a new mediation Module project.
Before you complete this task, make sure that you have installed WebSphere Adapter for Flat Files and applied the latest fixes.
Start the WebSphere integration Developer and open a new workspace.
Go to Workbench by closing the Welcome page. Make sure that you are working in the Business integration perspective, which is the default perspective.
Start Enterprise Service Discovery. Select File-> New-> Enterprise Service Discovery from the menu bar.
Figure 1. Run Enterprise Service Discovery