Create references for the UpdateAmount component and connect
to the services provided by the AddAmount and InquireAmount components.
You can create a new reference using either the Action Bar
or the Palette. The Action Bar appears when you hover over a component
in the composite editor. The Palette is always available to the right
of the composite editor. These steps use both methods to create references.
At any time during these steps
- Using the composite editor, create a new reference for
the UpdateAmount component:
- Place your pointer over the UpdateAmount component to
display the Action Bar.
- Select the Add ComponentReference icon.
The composite editor adds a reference icon to the component.
- Select the reference icon to rename the reference:
- Go to the Properties view. If this view is
not currently displayed, right-click in the composite diagram editor
and select Show Properties View.
- In the Core tab, edit the Name field to rename the reference
to AddAmountService.
- Connect the UpdateAmount component to the AddAmount component:
- Click the reference icon on the UpdateAmount component
and wait for the wire to display.
- Click the wire and drag it to the service icon of the
AddAmount component.
- Create another reference for the UpdateAmount component:
- In the Palette, click the Reference icon.
- Click on the UpdateAmount component to add the reference
to the composite diagram.
- Select the Reference icon to rename it:
- Go to the Properties View. If this view is
not currently displayed, right-click in the composite diagram editor
and select Show Properties View.
- In the Core tab, edit the Name field to rename the reference
to InquireAmountService.
- Wire this second reference to the service provided by the
InquireAmount component.
- Promote the service on the UpdateAmountService component
to that is available on the composite:
- Click the Service icon on the UpdateAmount component
to select it.
- Right-click and select the Promote menu
option.
You have assembled an SCA composite application. The FileaAmountServiceComposite
now looks as follows:
After assembling a composite application, deploy the composite
to CICS and test that it is working as expected.