Implementing the Connection Template
To define the connection template, the adapter includes the following classes in the com.wm.adapter.wmSampleAdapter.connection package:
WmSampleConnection class, which extends the
com.wm.adk.connectionWmManagedConnection class
WmSampleConnectionFactory class, which extends the
com.wm.adk.connectionWmManagedConnectionFactory class
The bean properties declared in the WmSampleConnectionFactory class are:
Property | Description |
sampleServerHostName | IP host name for the computer where the Sample Server is running. |
sampleServerPortNumber | TCP/IP port number that Sample Server accepts client connection. Default value is 4444. |
timeout | Number of milliseconds that the Integration Server waits to obtain a connection with the Sample Server before it times out and returns an error. Default value is 20000. |
transactionType | Flag indicating whether the connection requests local transaction control or an auto commit mode. Possible values are: true. false. |
The WmSampleLocalTransaction class is implemented to support the configurable local transaction control for the WmSampleConnection connection.