on 2007 Oct 30 9:59 AM
Hi All,
We developed a custom module for the processing of empty files.
But the audit log messages are not displayed in the communication channel monitoring.
But if we use the same EJB modules in receiver side it is diplaying in the audit log of communication channel monitoring.
Is there is any difference in the sender side and receiver side EJB objects.
If somebody can help in this secnario will be highly appreiciated.
Here is the sample code:
public ModuleData process(
ModuleContext moduleContext,
ModuleData inputModuleData)
throws ModuleException {
String SIGNATURE =
"process(ModuleContext moduleContext, ModuleData inputModuleData)";
TRACE.entering(
SIGNATURE,
new Object[] { moduleContext, inputModuleData });
Object obj = null;
Message msgg = null;
try {
obj = inputModuleData.getPrincipalData();
Message msg = null;
msg=(Message) obj;
msgg = (Message) inputModuleData.getPrincipalData();
AuditMessageKey amk =
new AuditMessageKey(
msgg.getMessageId(),
AuditDirection.INBOUND);
Audit.addAuditLogEntry(
amk,
AuditLogStatus.SUCCESS,
"Content Modify XIEmptyFile: Module Called");
} catch (Exception e) {
TRACE.catching(SIGNATURE, e);
if (obj != null)
TRACE.errorT(
SIGNATURE,
"Input ModuleData does not contain an object that implements the XI message interface. The object class is: {0}",
new Object[] { obj.getClass().getName()});
else
TRACE.errorT(
SIGNATURE,
"Input ModuleData contains only null as XI message");
ModuleException me = new ModuleException(e);
TRACE.throwing(SIGNATURE, me);
throw me;
}
return inputModuleData;
}
Thanks and Regards
Surender Singh.
Any Help will be appreciated..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
13 | |
10 | |
9 | |
9 | |
8 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.