t.s.tao
t.s.tao

Reputation: 61

Filter data inside custom Processor module?

I am writing a custom Processor module using a transformer class, and for some input, I do not want the transformer to generate any output, how can I do that?

I tried to return null in the transform() method, but that make Spring-xd runtime generate exceptions. And I do not want to use a Filter in the stream definition because that will be overkill for me. Any suggestions?

Upvotes: 0

Views: 70

Answers (1)

Gary Russell
Gary Russell

Reputation: 174699

Transformers always require a reply.

Use a <service-activator/> instead, with requires-reply="false".

Upvotes: 1

Related Questions