cancel
Showing results for 
Search instead for 
Did you mean: 

EMPTY FILE PROCESSING.

Former Member
0 Kudos
63

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Any Help will be appreciated..