Scenario 2 of the sample application requires you to use the enterprise
service discovery wizard to deploy the application package, configure the
adapter, and generate the SCA artifacts for outbound processing.
Why and when to perform this task
Before you begin to deploy and configure, import the CWYFF_FlatFile.RAR
file into the project. For this task, you must run the enterprise service
discovery within the IBM
® WebSphere
® Integration Developer to set adapter
configuration properties. To change the property values later, use the WebSphere
Process Server administrative console.
Steps for this task
- From WebSphere Integration Developer window, switch to the Business
Integration perspective by selecting from
the menu bar. All perspectives are displayed. Select Business Integration
perspective in WebSphere Integration Developer.
- In the Business Integration Perspective of WebSphere Integration
Developer, right-click the frame and from the pop-up menu, select. The Select an Enterprise Service
Resource Adapter window is displayed.
- Select the IBM WebSphere Adapter for Flat Files (version 6.0.0)
from the ’CWYFF_FlatFile’ Connector Project and click Next. The Configure Settings for Discovery Agent window
is displayed.
- In the Configure Settings for Discovery Agent window,
set the connection properties by selecting Outbound for the ServiceType. Outbound is the default ServiceType.
- At the bottom of the Discovery Agent Initialize Properties window,
click the Show Advanced button. You can set logging and tracing
levels here. Click Next.
- In the Find and Discover Enterprise Services window,
click Run Query.
- Under Objects Discovered, select the objects that you want to import. The objects that can be selected for import are displayed in the Objects
Discovered box. Highlight the object you would like to import, then click
the Add Selected button to add the objects to the Objects
to be imported box. Click Next.
Note: To
remove objects from the Objects Discovered box, highlight the object that
you would like to remove and click the Remove Selected button.
- In the Configure Objects window, specify the
properties for the objects that will be imported by the discovery agent. For the BO Location property, specify the folder name within the Business
Integration module where the .xsd file should be generated. Click Next.
The supported operations for Outbound include:
- Create
- Append
- Retrieve
- Delete
- Overwrite
- Exists
- List
- In the Generate Artifacts window, do the following:
- In the Generate Artifacts window, specify
the module name where the SCA artifacts (business objects, their properties,
import file, export file, and WSDL) should be saved, and then click New to
create a new business integration module. The New
Module window is displayed.
- In the New Module window, enter the Module
name and click Finish. The module name can
be FlatFileOutboundModule.
- In the Generate Artifacts window, enter
the folder name. The folder name can be FlatFileOutboundFolder.
- Under "Specify the connection properties which will be used
to connect to the Enterprise Information System at runtime", select Use
discovered connection properties.
- In the Generate Artifacts window, specify
the Flat Files ManagedConnectionFactory properties.
Note: Properties
marked with an asterisk (*) are required.
- In the Generate Artifacts window, specify
the ResourceAdapter properties. You can also set logging and tracing files
sizes and file name here as well.
Note: Properties marked with
an asterisk (*) are required.
- When you are finished entering property values, click Finish. The new module is added to the Business Integration Perspective,
along with all its artifacts.
Now, you can use WebSphere Integration Developer
to generate reference bindings for the SCA component that the enterprise service
discovery tool creates. Reference bindings are used by other WebSphere Business
Integration SCA components to access the adapter. You create a reference to
the adapter from the project module so as to link the adapter to the other
server processes.
- In the Business Integration Perspective of WebSphere Integration
Developer, right-click the module, and select . The Assembly Diagram window appears with
the modules Import component in view.
- To create a Stand-alone Reference, click the top-most icon in the
left-side (vertical) frame of the Assembly Diagram window. A
new menu of icons appears.
- Create a Stand-alone Reference. Drag the Stand-alone
Reference icon into the Assembly Diagram window.
- Create wiring from the Stand-alone Reference to FlatFileOutboundInterface. Click and drag the module‘s Import component to the Stand-alone reference.
This draws a wire from the Import component to the new Stand-alone Reference. The Add Wire dialog box is displayed.
- Click OK. The new Standalone
Reference component displays in the Assembly Diagram window with a wire that
connects it to the modules Import component.
- Edit the ManagedConnectionFactory properties. In WebSphere
Integration Developer, double click the first element under FlatFileOutboundModule
to open the Assembly Editor.
- Select
- Edit the ManagedConnectionFactory properties according to your
specific system requirements.
- Click Save when you are finished editing
the ManagedConnectionFactory properties.
- In the Business Integration perspective, right click FlatFileOutboundModule.
- Select from the pop-up menu. The Events window
is displayed.
- In the Events window, select an operation.
- Populate the values in the business object based on the operation
that you want to perform.
- To start the WebSphere Process Server and install the outbound
application, click Continue.
What to do next
The adapter application package, including all its SCA artifacts,
is now configured and deployed. You can now run the sample application.