cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Adapter Modules

Former Member
0 Kudos

Hello

Can anyone tell me as to how do i create my own adapter modules. The java caode has been developed but where in the configuration builder of XI should this be stored and how?Could someone explain the entire process as to how to do this and also the configuration that needs to be done.

Regards

Sharat

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

1. Make sure you have the following jar files with you.

aii_af_cci.jar

aii_af_mp.jar

aii_af_ms_api.jar

aii_af_ms_spi.jar

aii_af_trace.jar

aii_af_svc.jar

aii_af_cpa.jar

2. Open NetWeaver Developer Studio. Create a new EJB Module

New>J2EE>EJB Module.

Specify a meaningful name for the module and click Finish.

3. Right click on the folder ejbModule and create new package.

Enter a meaningful name for package and click Finish.

4. Right click on the Project, select New-->Folder. Enter lib as the folder name.

Copy all the jar files specified above from your local system and paste them into newly create lib folder.Right click on the project. Select Properties-->Java build path. Go to Libraries tab and add the jar files from lib folder to the classpath.

5.Switch to J2EE Perspective-->J2EE Explorer tab.

Right click on the newly created package and select New-->EJB.

6. Specify a meaningful name for the EJB. Select Bean Type as Stateless Session Bean.

Make sure to uncheck the checkbox “Generate default interfaces”.

Click on Next.

7.On the next screen change the values of following attributes as specified below.

Remote Interface: com.sap.aii.af.mp.module.ModuleRemote

Home Interface: com.sap.aii.af.mp.module.ModuleHome

Local Interface: com.sap.aii.af.mp.module.ModuleLocal

LocalHome Interface: com.sap.aii.af.mp.module.ModuleLocalHome

Click on Finish.

8. After clicking on Finish, a Creation error will be reported. Ignore this error as the file would still be created as specified.

Open the newly created file in Java Editor and add “Module” to the implements list of the bean class. Press Ctrl + Shift + O to remove import errors if any.

You will see a new error as

“Class must implement the inherited abstract method Module.process(ModuleContext, ModuleData)”.

Right click in the java editor and select Source-->Override / Implement methods. Select process method from Module interface and click Ok.

You should have an error free build of the project after this.

process is the only method where we need to write the business logic.

With this you are ready to right the situation specific business logic in the process method.

9. Once you create a deployable archive i.e. .ear for this using NDS, you can deploy this archive using NDS or using SDM.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Sharat,

This how to guide on Service Market Place delas with creating modules for your Adapter. Think it might be helpful to you and answer your query,

https://websmp202.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=011000358700000002...

Just open the link below, and select the topic <b>How to create adapter modules for j2ee engine</b>

IF you do not have a service marketplace id, drop your mail id, so that i can forward that document to you.

Regards,

Bhavesh

Message was edited by: Bhavesh Kantilal