Show TOC

Modifying the Java and Metadata FilesLocate this document in the navigation structure

Context

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.
  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.YourAdapter.adapter.ra

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

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

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

  3. Rename the file from SampleRA.xml to YourAdapterRA.xml
  4. In SAP NetWeaver Developer Studio (NWDS), create the java project AdapterYOURADAPTER.
  5. Create a package in the project com.test.YourAdapter.adapter.ra
    1. Copy all file (except YourAdapterRA.xml) into project directory com/test/YourAdapter/adapter/ra

    2. Copy YourAdapterRA.xml into root of project directory

  6. In YourAdapterRa.xml (replace JNDI name) from deployedAdapters/sample_ra/shareable/sample_ra to deployedAdapters/YourAdapter_ra/shareable/YourAdapter_ra .

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

  7. Refresh the project in NWDS.