442 IBM Branch Transformation Toolkit 5.1 Migration and Usage Guidelines
csClientService=((CSClientService)getService("CSClient"));//$NON-NLS-1$
setValueAt("permanentConnectionForEvents",(new
Boolean(csClientService.getPermanentConnectionForEvents())).toString());
setValueAt("ipAddress",Settings.getIpAddress());
setValueAt("eventsPort",new Integer(csClientService.getEventsPort()));
csClientService.sendAndWait(this,40000);
}
14.Externalize the client operation data by performing the following tasks:
a. Open the dseoper.xml file.
b. Create your client operation with the values shown in Example 8-39.
Example 8-39 withdrawalClientOperation
<operation context=”withdrawalClinetCtx”
id=”withdrawalClientOp”
impClass=”btt.bank.client.appl.WithdrawalClientOperation”
serrverOperation=”withdrawalServerOp”>
<refFormat name=”csRequestFormat” refId=”withdrawalCSRequestFmt”/>
</operation>
8.4.3 Creating Java client using VisualBeans
This section describes how to create a Java client view to launch the client
operation.
To construct the Java client view, use DSE VisualBeans and some standard
WebSphere Studio Application Developer visual parts such as Swing
components. Using Branch Transformation Toolkit VisualBeans in the
WebSphere Studio Application Developer environment requires a simple setup
to be in place beforehand.
This section first looks at setting up the visual composition environment, and then
at creating a Java View named WithdrawalView.
Setting up the WebSphere Studio environment
.To set up DSE VisualBeans environment, perform these tasks:
1. Open WebSphere Studio Application Developer.
2. Open the Java perspective and select BTTBankApplicationClient →
appClientModule.
a. Select File → Import → ZIP file → Next.
b. Import the DseGuiBeans.zip file located in the src directory of the visual
beans plug-in, that is, [drive]:\[WebSphere Studio Application