cancel
Showing results for 
Search instead for 
Did you mean: 

Adapter Module - Terminate the Module chain

former_member189387
Active Contributor
0 Kudos

Hi Folks ,

I wrote a adapter module (For File Sender ) used to validate the input file data before sent to MessageTransformBean

Here i am calling my module along with the standard module in the following sequence

1. OwnLocalEnterpriseBean ( Here i am validating the input file - if success then let the next module to process else exit from module chain )

2. localejbs/AF_Modules/MessageTransformBean

3. CallSapAdapter

It works When validation is success .

I am raising exception whenever valiation fails . Here only i am facing challenge . Whenever validation fails adapter not processing next files .It hangs .

Any code to bypass the further modules chain and terminate the module-process chain ?

any help will be highly appreciated .

Regards.,

V.Rangarajan

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member189387
Active Contributor
0 Kudos

Dear Folks ,

Issue resolved by applying SAP Note 1483974 File and JDBC Sender adapter retry not working

Thanks.,

V.Rangarajan

Former Member
0 Kudos

Hi Rangarajan,

I think you can try out by mentioning the Quality of service as EOIO and try. Appreciate if you can send the error info you get or the Audit log.

Regards,

Sainath Chutke

former_member189387
Active Contributor
0 Kudos

Hi Sainath Chutke ,

Thanks for your reply .

In nutshell i am archiving the error file in my own module.

In Audit Log once the validation fails i got the following ,

-


MP: exception caught with cause com.sap.aii.af.lib.mp.module.ModuleException: Own Module Exception ********

File processing failed with null.

-


the above exception is my custom exception message .

code snippet as

// end of archieving

throw new ModuleException("Own Module Exception ********");

}

} catch (Exception e) {

ModuleException me = new ModuleException(e);

throw me;

}

Thanks.,

V.Rangarajan