Building an ESB mediation to convert a delimited file into a service call

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.