Hi All,
I was looking for how to create a sensible Application Error in a custom JCA adapter and was excited to find the following page in the PCK info on Adapter Development:
http://help.sap.com/saphelp_nw04/helpdata/en/3c/53d6409ff68631e10000000a1550b0/frameset.htm
The part of interest being:
<i>
The following methods are available to enable you to read error information in the form of an ErrorInfo object from the message, or to set the error information in a message.
Message.getErrorInfo()
Message.setErrorInfo()
If the synchronous response message is an application-error message instead of an application response, it must call setErrorInfo(myErrorInfo) for receiver adapters.</i>
However, I can't find these methods, or indeed the "ErrorInfo" object anywhere in the AF classes - does anyone know it's whereabouts? Or is the above page just out of date? If so, what is the new approach for creating Application Level Errors in a custom JCA Resource adapter (not Exceptions - I can do that)
Many thanks,
Chris
Ok, check the following path in your XI or PCK installation:
/usr/sap/<SID>/DVEBMGS<XX>/j2ee/cluster/server0/bin/ext/com.sap.aii.af.lib
or
/usr/sap/<SID>/JC<XX>/j2ee/cluster/server0/bin/ext/com.sap.aii.af.lib
Within 'aii_af_ms_api.jar' is the particular class and method you're looking for.
Also, check Note 766332 for some updated info on adapter development.
Regards,
Jin
Hi Chris -
All the classes required for custom adapter development and the Javadocs are available in the sample_ra.jar archive which you can find on your XI, PCK, or decentral adapter installation. More info herehttp://help.sap.com/saphelp_nw04/helpdata/en/87/3ef4403ae3db12e10000000a155106/frameset.htm">here>. The page is not out of date.
Regards,
Jin
Add a comment