Totest the enterprise metadata discovery (EMD) implementation for the developed
resource adapter,complete the following steps:
1. From the IBM WebSphereAdapters Foundation Classes library, copy the
following three dependent jars into the connectorModule connector project:
vcommonj.connector.jar
vCWYBS_AdapterFoundation.jar
vDESPI.jar
Displaying the dependent jars
Note: Alternatively,if you want to export the jars as RAR, you can use the
AFCUtility tool to place these three jars into the RAR. This tool is available as
WATplug-in from /plugins/com.ibm.j2ca.wat.afc_6.2.0/AFCUtility.
2. In the WebSphereIntegration Developer window, click Go to the Business
Integration perspective.
3. Right-click inside the Business Integration section of the WebSphereIntegration
Developer window.
4. Typein a new Module Name in the New Module window. Click Finish.
5. Open the external service by clicking the File->New->External Service.
6. In the External service window,expand Adapters and select the adapter name
entered in the ra.xml file.
Note: Youcan enter the adapter name in the ra.xml file using the Resource
Adapter Deployment Descriptor editor.
7. Click through Next to open the last External service window.Click Browse and
select the module created in Step 4 to generate the required artifacts.
Note: If you do not add the dependency jars to the connectorModule, the
following error might display during the deployment:
java.lang.NoClassDefFoundError: com.ibm.j2ca.base.WBIResourceAdapter
Testing the adapter in unmanaged mode
Testingin unmanaged mode means unit testing the adapter implementation in
your development environment. Youcan unit test your adapter with JUnit, a
widely used and reliable open source framework for regression testing.
194 WebSphereAdapters: WebSphereAdapter Toolkit User Guide