on 07-18-2007 11:57 AM
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
Also, can you check the log files in J2ee engine
you will have the stack trace
regards
krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
6 | |
6 | |
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.