cancel
Showing results for 
Search instead for 
Did you mean: 

Sync-Async bridge: issue with the continuous retry for the failed messages

Former Member
0 Kudos

Dear Experts,

Iam trying to build a File-SOAP-File scenario using module beans. I have done following configuration:

1. Created a sender file channel with module configuration as following

1AF_Modules/RequestResponseBeanLocal Enterprise BeanRR
2CallSapAdapterLocal Enterprise Bean                  0
3AF_Modules/ResponseOnewayBeanLocal Enterprise BeanRO

ROreceiverChannelTest_Create_FILE_SND
ROreceiverParty*
ROreceiverServiceQA_999
RRpassThroughtrue

2. Classical configuration with synchronous outbound and synchronous inbound interface.

3. Receiver Soap channel without any module configuration

Now the problem is if something goes wrong in the request xml, web-service returns the soap fault error, and then file channel starts to retry continuously at the given polling interval, creating a lot of failed messages. I didn't provide any retry interval in the channel configuration.

I am not sure how can I stop channel from retrying continuously, need your help if something can be done to avoid this situation.

Thanks and Regards,

Shweta Thakur

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos

Hello Shweta,

Does your fault message has a different name?

If yes try configuring the file channel to pick only the success files.

Former Member
0 Kudos

Hello Raghuraman,

I don't want to configure the fault handler, it should fail in case of error.

Problem is in the file sender channel, it retries continuously in case of failures, and each retry generates a new response message, creating a lot of failed messages in SXM_MONI. Ideally there should have been only one response message either successful or in error.

Thanks and Regards,

Shweta Thakur

former_member186851
Active Contributor
0 Kudos

Hello Shweta.

What is the mode in the Sender file channel.

Change it to delete and you can even enable archive faulty source files and mention the directory to archive faulty files.

Former Member
0 Kudos

Sender file channel  archives the filepost processing.

former_member186851
Active Contributor
0 Kudos

Hello Shweta,

Try doing archive faulty messages option and check once.

Former Member
0 Kudos

Thanks, it is working.

former_member186851
Active Contributor
0 Kudos

Glad to hear.

Answers (1)

Answers (1)

former_member182412
Active Contributor
0 Kudos

Hi Shweta,

It is beter to put the modules in receiver channel then up to receiver channel it will be asynchronous only when calling web service is synchronous, if it fails you can restart from there or cancel like normal asynchronous scenario.

Regards,

Praveen.

Former Member
0 Kudos

Hi Praveen,

I have couple of queries on your suggestion:

  1. I am using sync interfaces at outbound and inbound side. If I use modules in the receiver channel, then will it be able to execute the response mapping ?
  2. If I create outbound async interface and inbound sync interface, then can I directly route it to the channel without using any response mapping or  can only direct it using the interface ?

Regards,

Shweta

former_member182412
Active Contributor
0 Kudos

Hi Shweta,

Check below blogs for more details.

Regards,

Praveen.