cancel
Showing results for 
Search instead for 
Did you mean: 

module logging

milan_10
Participant
0 Kudos

Hello all,

does anyone know why this code doesn't log anythink in Audit Log entries?

public ModuleData process(ModuleContext moduleContext,ModuleData inputModuleData) throws ModuleException {

Object obj = null;

Message msg = null;

AuditMessageKey amk = null;

try {

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

Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "CreateAttachment: Module called"); inputModuleData.setPrincipalData(msg);

} catch (Exception e) {

Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "Faild: " + e.toString());

}

return inputModuleData;

}

except this one:

Success MP: processing local module localejbs/RSX_EJB

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi milan

is this the adapter module for the sender adapter??

Also, where is the code for the log that successfully prints?

Regards

krishna

milan_10
Participant
0 Kudos

Hello,

it is a receiver adapter module, but it is already working somehow. When I find out what was the problem, I'll describe here the problem latter.

Former Member
0 Kudos

Hi milan

Glad it is working now.

For reciever adapter ,the AuditDirection should be OUTBOUND and not inbound as your code had.

<i>

amk = new AuditMessageKey(msg.getMessageId(), AuditDirection.INBOUND);</i>

do let me know if the problem was something else.Thanks

regards

krishna

Answers (0)