Skip to Content
avatar image
Former Member

EMPTY FILE PROCESSING.

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 30, 2007 at 01:13 PM

    Any Help will be appreciated..

    Add comment
    10|10000 characters needed characters exceeded