Upon startup, my app needs to quickly query an MS SQL database for records in 2 tables from the previous day. It's a fairly quick operation. I'm trying to figure out how I might do this with Spring Integration. I'm using an int-jdbc:inbound-channel-adapter to query my table and pass the message on to a channel to which I have a service-activator listening on. Whenever I run my app, it throws an exception that a poller has not been defined for my channel adapter. I understand the poller will do recursive queries to the database, but I'm only interested in making one initial query. How can I accomplish that? Should I just use JdbcTemplate directly? Thanks.
<beans:bean id="pfMessageHandler" class="com.mycompany.phones.trace.PFTraceMessageHandler"/> <int-jdbc:inbound-channel-adapter query="select top 10 * from tblData_OutboundTrace" channel="outboundTraceResults" data-source="pfDataSource"/> <channel id="outboundTraceResults"/> <service-activator id="outboundTraceProcessor" input-channel="outboundTraceResults" ref="pfMessageHandler" method="processOutboundTraceResults"/>