Modifying the Java and Metadata Files 
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.
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
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.
Change package name from com.sap.aii.af.sample.adapter.ra to com.test.YourAdapter.adapter.ra
Change package path for log and trace file locations from com/sap/aii/af/sample/adapter/ra to com/test/YourAdapter/adapter/ra
Change adapter guid from http://sap.com/xi/XI/sample/JCA to http://sap.com/xi/XI/YourAdapter/JCA
Change adapter namespace from http://sap.com/xi/XI/sample to http://sap.com/xi/XI/YourAdapter
Rename the file from SampleRA.xml to YourAdapterRA.xml
In SAP NetWeaver Developer Studio (NWDS), create the java project AdapterYOURADAPTER.
Create a package in the project com.test.YourAdapter.adapter.ra
Copy all file (except YourAdapterRA.xml) into project directory com/test/YourAdapter/adapter/ra
Copy YourAdapterRA.xml into root of project directory
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.
Refresh the project in NWDS.