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