I have a simple Spring Cloud Stream application where the stream accepts a raw JSON string and produces a list of Objects.
Version used :
<spring.cloud.version>Hoxton.SR2</spring.cloud.version>
Signature of stream used:
@Bean
public Function<String, List<EmailEvent>> normalizeStream() {
return value -> {
return getNormalizedEvents(value);
};
}
Expectation is that although the output signature of the stream is a List, it should be serialized as individual items in the queue. This change is perfectly working in this version of Cloud stream.
But when I upgrade to Hoxton.SR4 or above, this expectation is breaking and the producer is producing as a list only instead of individual items.
Any help on what I might be missing would be greatly appreciated.