Skip to Content
0

Responseoneway Bean

Mar 29, 2017 at 02:20 PM

64

avatar image

Hi SDnites,

I have a Async to Sync scenario and wanted to check following points,

1. For receiver to be Sync, do I need to mandatorily make my receiver service interface to be synchronous or using module RequestResponseBean will make it synchronous during runtime.

2. ResponseOnewayBean has got 2 different set of parameters which I havefound online,

First set, (Will be used when I do not want to create other interface)

1. receiverChannel

2. receiverService

Second set, (Will be used when I waant to create other interface)

1. interface

2. interfaceNamespace

3. replaceInterface

Regards,

Abhi

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Praveen Gandepalli Mar 29, 2017 at 03:15 PM
0

Hi Abhishek,

1. For receiver to be Sync, do I need to mandatorily make my receiver service interface to be synchronous or using module RequestResponseBean will make it synchronous during runtime.

You can create receiver service interface as asynchronous, the RequestResponseBean module will change the quality of service from async to sync and then ResponseOnewayBean module will change the quality of service from sync to async again.

2. ResponseOnewayBean has got 2 different set of parameters which I havefound online,

Better to use the modules in receiver channel, if you configure RequestResponseBean and ResponseOnewayBean modules in receiver channel the use interface, interfaceNamespace and replaceInterface parameters for ResponseOnewayBean to find the second asynchronous response interface, the other parameters if you use these modules in sender channel and to find the receiver channel to send the response message.

Regards,

Praveen.

Share
10 |10000 characters needed characters left characters exceeded