specify a channel where rejected messages should be sent . if the discard channel is null the default , duplicate messages will be enriched with integrationmessageheaderaccessor #duplicate_message headerand returned as normal to the invocation.proceed . however , the ` throwexceptiononrejection ' flag determines whether rejected messages trigger an exception . that value is evaluated regardless of the presence of a discard channel . if there is needed just silently ` drop ' rejected messages configure the #discardchannel to the nullchannel . concode_field_sep MessageChannel discardChannel concode_elem_sep MessageBuilderFactory messageBuilderFactory concode_elem_sep Log logger concode_elem_sep boolean throwExceptionOnRejection concode_elem_sep BeanFactory beanFactory concode_elem_sep boolean messageBuilderFactorySet concode_elem_sep MessagingTemplate messagingTemplate concode_elem_sep MessageSelector messageSelector concode_field_sep void setTimeout concode_elem_sep MessageBuilderFactory getMessageBuilderFactory concode_elem_sep Object invoke concode_elem_sep void setThrowExceptionOnRejection concode_elem_sep void setBeanFactory
void function ( MessageChannel arg0 ) { this . discardChannel = arg0 ; }