Hello,
on pages 187-189 of "Spring Integration in Action", the authors give an example of an inbound-channel-adapter and a chain whose service activator is an email handling service, called "emailHandlingService". Unfortunately, they don't provide the service's program in the book's source code. Could someone please provide an example of such a service?

Many thanks.

Philroc

<int-mail:inbound-channel-adapter id="mailAdapter"
store-uri="pop3:..."
java-mail-properties="javaMailProperties"
channel="emails"
auto-startup="true">
<intoller max-messages-per-poll="1" fixed-rate="5000" />
</int-mail:inbound-channel-adapter>

<int:chain input-channel="emails" output-channel="handled-emails">
<int-mail:mail-to-string-transformer />
<int:transformer expression="payload.content"/>
<int:service-activator ref="emailHandlingService"/>
</int:chain>