on 2007 Apr 03 8:56 AM
Hi,
I have developed a module for mail adapter.
In the module, sometimes I will throw ModuleException like this:
ModuleException me = new ModuleException("You are not allowed here!",e);
throw me;
But in channel monitor, I could only see the exception like this:
exception caught during processing mail message [8]com.sap.aii.af.lib.mp.module.ModuleException
I can't find "You are not allowed here!" in the channel monitor directly. I know I could find it in trace or auditlog, but, is it possible to display these words in channel monitor directly?
Thanks.
Mike
hi Mike,
use AuditMessage to log to messaging system (adapter framework)
have a look at the code from this (or many other module blogs)
/people/francesco.bersani/blog/2007/03/27/rename-attachment-adapter-module
this is the proper way of handling monitor messages
from help.sap.com
http://help.sap.com/saphelp_nw04/helpdata/en/a6/66e540aa827e7fe10000000a1550b0/content.htm
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
Thanks.
I know I could use audit to log.
But my quesion is how to display the error message in Communication Channel Monitor, no in audit log.
Why I only could see exception "caught during processing mail message [8]com.sap.aii.af.lib.mp.module.ModuleException" in channel monitor without any other useful message? Is it possible to add some useful message here?
Mike
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.