Chapter 6. EIS integration using Java Message Service 141
including the business object and context information. Output is defined by the
StockOrderConfirmation business object and a confirmation message.
The TraderIMSFeature is the only feature we have designed, but in real
environments, many features are available in an EIS component. To provide an
interface to the feature set, we defined the session bean TraderIntegrationBean.
In our scenario, the bean implements an invoke method and is exposed as a
service, the Trader EIS service.
In our case, the invoke method calls the TraderIMSFeature methods directly. The
advantages of the feature pattern become apparent if the TraderIntegration
session bean is extended to include a more sophisticated method of calling a
feature. If you call directly and a new feature is added, you have to touch the
TraderIntegration bean. To avoid this situation and to enable the
TraderIntegration bean to call the new features as they are added, we
recommend that you implement a configuration mechanism so that new features
are registered at the TraderIntegration bean and so that the features are called
by using the interface methods.
The implementation of the Trader EIS component is described in detail in 6.4.2,
“Creating the EIS component” on page 141. For more details about how to create
the system process, refer to Chapter 9, “Integration into business processes” on
page 241.
6.4.2 Creating the EIS component
This section explains how to build the EIS component. First, it describes how to
set up the project environment on WebSphere Studio Application Developer
Integration Edition. Then, it shows how to generate Java utility classes for
accessing the IMS system. Finally, it describes the implementation of the
TraderIMS feature and the TraderIntegration session bean.
Creating the EIS component project
When you start WebSphere Studio Application Developer Integration Edition, the
default perspective that is shown is Business Integration. This perspective, and
the J2EE and the Server perspective, provide the tools that we used in our
development process.
If you start with an empty workspace, you might wish to set preferences first. To
set preferences:
1. Select Window
→ Preferences to open the preferences editor.
We recommend that you enable server targeting because it allows you to
choose the application server type and version for the projects and artifacts
that you create.