java - How to close spring integration channel? -


i have project spring integration , input/output channels. problem in last piece of config

 <int:transformer id="testtransformer"  input-channel="inchannel" method="processor"         output-channel="outchannel">             <bean class="someclass"/>         </int:transformer> 

it gives me error

failure occurred in gateway sendandreceive: no reply produced handler 'testtransformer', , 'requiresreply' property set true 

i understand it's outputchannel not initialized, how correctly make program finished?

no reply produced handler 'testtransformer', , 'requiresreply' property set true

that means transformer component strictly request-reply , has return something.

that's no problem of configuration, logic in someclass.processor() method. reconsider return valuable instead of null.

if null possible logic , manage somehow in flow, consider switch service-activator. 1 isn't strict reply , allow return null. @ same time should bear in mind flow stops here. null invalid messaging , indicator stop processing because nothing payload more.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -