on 01-29-2007 5:55 AM
eX(i)perts..
Can anybody share the effective error handling strategies inside adapter modules?
Specifically looking for
1. Module parameters configuration related error handling
2. Business logic failure owing to incorrect data.
-- Amol
Hi Amol,
Regarding Business Logic Error, u can throw module Exception and Write user defined details in AuditLog, so that it will be visible in RWB Details option in Adapter Engine Monitoring.
Are u looking for Alerting from Adapter Modules too?
Regards,
Sudharshan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What I usually do is:
- fatal error: log to audit and throw exception, so that the message hangs
- others (info, warning, recoverable errors) just log to audit
I am currently figuring out how to avoid the channel retry over the same file (for instance) when I know there's an error that requires human handling...
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I resolved to move (rename) the file to a .err
This is no sharp solution, I know, for many reasons: first of all, in an EJB, you should never manipulate files directly with java.io.* package.
But... I think this problem is really releated to File/Ftp apdater only... (maybe jms as well)... Imagine the same story in a SOAP channel... Once data are received, that's it. No way the channel can poll again...
Btw, I have also investigated the ModuleException() constructor that supports the "cause" argument, passing RecoverableException, FormatException, etc. which sounded interesting but with no effect on the "file problem".
Anyway, should someone come up with a standard and more elegant solution, I'd really like to know.
Alex
I have suggestion ..
instead of renaming the file from within the module(EJB)..why don't you let XI do that for you...
What i mean is if the module is failing donot throw an exception, however set the file name specific adapter identifier to have the .err name, which you can use it in receiver determination check and have the file written out by a recevier channel?
this is in case of a file...in other cases, set some variable which can be accessed at runtime and then this message would be handled by an excpetion receiver....
Thanks.
Message was edited by:
Renjith Andrews
Hi,
Please see the following PDF documents to develop the Module processor programs.
http://help.sap.com/saphelp_nw04/helpdata/en/0d/00453c91f37151e10000000a11402f/frameset.htm
help : http://ifr.sap.com
Some weblogs for JAVA mapping for IDoc mapping
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
Regards
Chilla..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chilla,
I am aware of how Adapter modules are developed...
also ..please enlighten me how the following is related to my question..may be I failed to understand
<b>Some weblogs for JAVA mapping for IDoc mapping
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.