cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in EJB Module

Former Member
0 Kudos

Hi all ,

We have written a EJB module (Successfully deployed) and that we are using in the Sender comm Channel (file)

**Part of the code

Message msg = (Message) inputModuleData.getPrincipalData();

AuditMessageKey amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);

Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"Entered method process");

if (msg == null) {

throw new ModuleException("No XI Message found");

}

XMLPayload xp = msg.getDocument();

Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"Retrieve payload document");

if (xp == null) {

throw new ModuleException("XMLPayload not found");

}

// get Audit message Key for Inbound messages

byte fileContent[] = xp.getContent();

//String fileString = new String(fileContent);

Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"Retrieved payload");

JCO.Client client = null;

client = JCO.createClient("001", // SAP client

"aaaa", // userid

"*****", // password

"EN", // language

"gcrsap.comp.com", // host name

"00"); // system number

// Open the connection

client.connect();

****Part of the code ****

When use the module in adapter , we are getting the error in Communication Channel Monitoring (RWB) " Attempt to process file failed with com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method process"

Regards

Goutam

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Also, can you check the log files in J2ee engine

you will have the stack trace

regards

krishna