on 08-27-2010 4:11 PM
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
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;
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>Preferences>Java>Code Generation>Code and Comments
*/
package aaa;
/**
@author 893911
*
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
*/
public class Asj {
}
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.