PDA

View Full Version : how to make a adapter in the configration file



lovepeculiar
Dec 31st, 2009, 01:42 AM
I want to write a class like AbstractPollingEndpoint, which can control its scheduler.but now I don't know how to take my class as a adapter write in the configration file.A part of my configration file as follows:

<si:inbound-channel-adapter channel="inputChannel"
ref="dbinput">
<beans:bean id="dbinput" class="com.neusoft.unieap.dataexchange.dbinputadaptor.DBI nputAdaptor">
<beans:property name="modelId" value="1261992849998">
</beans:property>
</beans:bean>

I don't want to add poller to the inbound-channel-adapter,because I want to control the poller in my class. Who can tell me how to take the message to the "inputChannel" in mu class.Thank You!!!

alpe1
Dec 31st, 2009, 09:24 AM
You may find a gateway also adequate when you only need to send objects to your "inputChannel" from your "DBInputAdaptor".

http://static.springsource.org/spring-integration/reference/htmlsingle/spring-integration-reference.html#gateway
Alex