on 11-19-2010 8:29 PM
Hi Gurus,
I get a lot of files in an ftp folder which I need to process very quickly. But with some big files and few modules in the CC this takes too much time and I get timeouts.
So I developed a module to be used in a new CC were it will get the files and dispatch them into different local folders. Up to there all is good.
Now I want to track which files I picked and drop. I am able to write into Audit log but as there is no module "CallSapAdapter" then there is no record on "Message Display Tool"
Question: How can I write into Message Display Tool without calling "CallSapAdapter"
Thanks in advance for you time and patience.
Luis.
Edited by: Luis Diaz on Nov 23, 2010 10:31 AM
Did you use a statement like flushAuditLogEntries?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
Thanks for your response.
I tried what you mentioned but I still don't see the entries.
Let me explain a little further.
I am using PI 7.0 and I use just one module prepared by myself in a Sender CC of type File
FileDispatcher
In this module I use these statements to write log:
private AuditMessageKey amk;
amk = new AuditMessageKey(msg.getMessageId(), AuditDirection.OUTBOUND);
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "FileDispatcher started");
...
...
...
Audit.flushAuditLogEntries(amk); //Based on your suggestion.
Audit.addAuditLogEntry(amk, AuditLogStatus.WARNING, "After flushAuditLogEntries.");
return inputModuleData;
But I still don't see any entry in:
http://host:50000/MessagingSystem/monitor/monitor.jsp
This is the place where I want my log. Cause in the CC is not persistent.
I hope there is a way to flush it there.
Thanks for your help.
Luis.
You could look into the source code of the sample adapter.
Maybe there is something useful in there.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/87/3ef4403ae3db12e10000000a155106/frameset.htm
Hi,
I am using adapter module is able to see the values in the message servlet link mentioned by you.
However, I just noticed one difference i.e. I am using MessageKey instead of AuditMessageKey as mentioned by you.
MessageKey messageKey = null;
messageKey = new MessageKey(message.getMessageId(), message.getMessageDirection());
You can try this option.
-Rahul
Hi Rahul,
Do you use the module CallSapAdapter at the end?
Cause if I use that module I am able to see my log in MDT (Message Display Tool - http://host:50000/MessagingSystem/monitor/auditlog.jsp)
Thanks for your help anyway.
Luis.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.