Show TOC

Procedure documentationModifying the Java and Metadata Files Locate this document in the navigation structure

 

You need to provide a different adapter name and type, package name, JNDI name, trace and log file locations, and the metadata describing the configuration parameters for the sample_ra adapter’s Java program.

Procedure

  1. Download the com.sap.aii.adapter.sample.ra.rar file and extract the content of the com.sap.aii.adapter.sample.ra.jar file in to a temporary directory. More information: Accessing JavaDoc and Source Text of the Example Adapter/Module

  2. Change the file contents of all the files in com.sap.aii.adapter.sample.ra.jar. The files contain the package name/path of the sample_ra adapter. Change them to your package/path names.

    1. Change package name from com.sap.aii.af.sample.adapter.ra to com.test.YourAdapterName.adapter.ra

    2. Change package path for log and trace file locations from com/sap/aii/af/sample/adapter/ra to com/test/YourAdapterName/adapter/ra

    3. Change adapter guid from http://sap.com/xi/XI/sample/JCA to http://sap.com/xi/XI/YourAdapterName/JCA

    4. Change adapter namespace from http://sap.com/xi/XI/sample to http://sap.com/xi/XI/YourAdapterName

  3. Rename the file from SampleRA.xml to YourAdapterNameRA.xml

  4. In NWDS, create the java project AdapterYOURADAPTERNAME.

  5. Create a package in the project com.test.YourAdapterName.adapter.ra

    1. Copy all file (except YourAdapterNameRA.xml) into project directory com/test/YourAdapterName/adapter/ra

    2. Copy YourAdapterNameRA.xml into root of project directory

  6. In YourAdapterNameRa.xml (replace JNDI name) from deployedAdapters/sample_ra/shareable/sample_ra to deployedAdapters/YourAdapterName_ra/shareable/YourAdapterName_ra.

    YourAdapterNameRa.xml contains the metadata for the adapter, for example configuration parameters such as file name and directory name.

  7. Refresh the project in NWDS.