cancel
Showing results for 
Search instead for 
Did you mean: 

NWDS class no timplementing session bean

former_member335553
Active Contributor
0 Kudos

Hi

i am creating an adapter module . In NWDS when i Create a class under EJB module ,class is not imlplemented with session bean and module interfaces

I have downloaded all jar files from PI as per standard and I am unsing NW 7.0 sp18 and my pI server on 7.0 SP18

Please advise

Thanks

Anusha

Accepted Solutions (0)

Answers (1)

Answers (1)

VijayKonam
Active Contributor
0 Kudos

Once you import the JARS, you can use the below code as the starting point and change as per your requirement.

package sample;

import javax.ejb.CreateException;

import javax.ejb.SessionBean;

import javax.ejb.SessionContext;

import com.sap.aii.af.mp.module.*;

import com.sap.aii.af.ra.ms.api.*;

/**

  • @ejbHome <{com.sap.aii.af.mp.module.ModuleHome}>

  • @ejbLocal <{com.sap.aii.af.mp.module.ModuleLocal}>

  • @ejbLocalHome <{com.sap.aii.af.mp.module.ModuleLocalHome}>

  • @ejbRemote <{com.sap.aii.af.mp.module.ModuleRemote}>

  • @stateless

*/

public class CreateAttachment implements SessionBean, Module{

private SessionContext myContext;

public void ejbRemove() {

}

public void ejbActivate() {

}

public void ejbPassivate() {

}

public void setSessionContext(SessionContext context) {

myContext = context;

}

public void ejbCreate() throws CreateException {

}

public ModuleData process(ModuleContext moduleContext,

ModuleData inputModuleData)

throws ModuleException {

return inputModuleData;

}

}

former_member335553
Active Contributor
0 Kudos

I had imported all the jars But once i create the class i am not able to see this default code . I am able to get htat class is not implementing the session bean and the module interface

aii_af_cci.jar

aii_af_cpa.jar

aii_af_mp.jar

aii_af_ms_api.jar

aii_af_ms_impl.jar

aii_af_ms_spi.jar

aii_af_svc.jar

aii_af_trace.jar

I just get a java class

  • Created on 26-Aug-2010

*

  • To change the template for this generated file go to

  • Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments

*/

package aaa;

/**

  • @author 893911

*

  • To change the template for this generated type comment go to

  • Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments

*/

public class Asj {

}

GabrielSagaya
Active Contributor
0 Kudos

check all jar files are imported as per below wiki for PI 7.0 Adapter module.

http://wiki.sdn.sap.com/wiki/display/XI/XIlibrariesfor+development

Please see the sample example

http://wiki.sdn.sap.com/wiki/display/XI/AdaptermoduleexampleforPI+7.0