This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Query regarding poller ....!!

Nov 15th, 2011, 04:16 AM

Hi,

I have one query regarding poller as I have studied the poller that it is sort of a daemon thread that keep polling the source and will grab the meaasge from source within a define time period and if no poller is defined then a single default poller must be registered ...!!

I am developing an application in which I have done the configuration in xml file also there the particular tag in which global level of poller is defined that I haven't understood completely..please guide me what its functinality is there ....the tag is ...

Hi oleg zhurakousky,
Sorry to say but I have gone through the refernces first ther are amazing but I couldn't grasp that much from them ...could you please guide me wats going on inside the below code....

Comment

Have a look at this in org.springframework.integration.config.SourcePolli ngChannelAdapterFactoryBean

Code:

if (this.pollerMetadata == null) {
this.pollerMetadata = IntegrationContextUtils.getDefaultPollerMetadata(this.beanFactory);
Assert.notNull(this.pollerMetadata, "No poller has been defined for channel-adapter '"
+ this.beanName + "', and no default poller is available within the context.");
}