Results 1 to 4 of 4

Thread: how to set the default poller settings...??

  1. #1
    Join Date
    Sep 2011
    Posts
    167

    Default how to set the default poller settings...??

    hi,

    please tell me how to do the default poller settings... as I am running the application , getting this eeror as usal ...I am sending the complete stack trace ..


    Sep 12, 2011 5:13:08 PM org.springframework.context.support.AbstractApplic ationContext prepareRefresh
    INFO: Refreshing org.springframework.context.support.ClassPathXmlAp plicationContext@d70d7a: startup date [Mon Sep 12 17:13:08 IST 2011]; root of context hierarchy
    Sep 12, 2011 5:13:08 PM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from class path resource [jms-spring-context.xml]
    Sep 12, 2011 5:13:08 PM org.springframework.integration.config.xml.Default ConfiguringBeanFactoryPostProcessor registerErrorChannelIfNecessary
    INFO: No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
    Sep 12, 2011 5:13:08 PM org.springframework.integration.config.xml.Default ConfiguringBeanFactoryPostProcessor registerTaskSchedulerIfNecessary
    INFO: No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
    Sep 12, 2011 5:13:08 PM org.springframework.beans.factory.support.DefaultL istableBeanFactory preInstantiateSingletons
    INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@13c0b53: defining beans [jmsConfiguration,messageHandler,org.springframewor k.context.annotation.internalConfigurationAnnotati onProcessor,org.springframework.context.annotation .internalAutowiredAnnotationProcessor,org.springfr amework.context.annotation.internalRequiredAnnotat ionProcessor,org.springframework.context.annotatio n.internalCommonAnnotationProcessor,org.springfram ework.integration.internalDefaultConfiguringBeanFa ctoryPostProcessor,output,input,org.springframewor k.integration.jms.JmsSendingMessageHandler#0,org.s pringframework.integration.config.ConsumerEndpoint FactoryBean#0,org.springframework.jms.listener.Def aultMessageListenerContainer#0,org.springframework .integration.jms.ChannelPublishingJmsMessageListen er#0,org.springframework.integration.jms.JmsMessag eDrivenEndpoint#0,org.springframework.integration. config.RouterFactoryBean#0,org.springframework.int egration.config.ConsumerEndpointFactoryBean#1,inve ntory,shouter,connectionFactory,nullChannel,errorC hannel,_org.springframework.integration.errorLogge r,taskScheduler,org.springframework.integration.co nfig.IdGeneratorConfigurer#0]; root of factory hierarchy
    SLF4J: The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10, 1.5.11]
    SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
    Sep 12, 2011 5:13:08 PM org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry destroySingletons
    INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@13c0b53: defining beans [jmsConfiguration,messageHandler,org.springframewor k.context.annotation.internalConfigurationAnnotati onProcessor,org.springframework.context.annotation .internalAutowiredAnnotationProcessor,org.springfr amework.context.annotation.internalRequiredAnnotat ionProcessor,org.springframework.context.annotatio n.internalCommonAnnotationProcessor,org.springfram ework.integration.internalDefaultConfiguringBeanFa ctoryPostProcessor,output,input,org.springframewor k.integration.jms.JmsSendingMessageHandler#0,org.s pringframework.integration.config.ConsumerEndpoint FactoryBean#0,org.springframework.jms.listener.Def aultMessageListenerContainer#0,org.springframework .integration.jms.ChannelPublishingJmsMessageListen er#0,org.springframework.integration.jms.JmsMessag eDrivenEndpoint#0,org.springframework.integration. config.RouterFactoryBean#0,org.springframework.int egration.config.ConsumerEndpointFactoryBean#1,inve ntory,shouter,connectionFactory,nullChannel,errorC hannel,_org.springframework.integration.errorLogge r,taskScheduler,org.springframework.integration.co nfig.IdGeneratorConfigurer#0]; root of factory hierarchy
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.integration.config.ConsumerEn dpointFactoryBean#0': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No poller has been defined for endpoint 'org.springframework.integration.config.ConsumerEn dpointFactoryBean#0', and no default poller is available within the context.
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1420)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 93)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:290 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:192)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:567)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:895)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:425)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:139)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:83)
    at com.apress.prospringintegration.test.main(test.jav a:38)
    Caused by: java.lang.IllegalArgumentException: No poller has been defined for endpoint 'org.springframework.integration.config.ConsumerEn dpointFactoryBean#0', and no default poller is available within the context.
    at org.springframework.util.Assert.notNull(Assert.jav a:112)
    at org.springframework.integration.config.ConsumerEnd pointFactoryBean.initializeEndpoint(ConsumerEndpoi ntFactoryBean.java:180)
    at org.springframework.integration.config.ConsumerEnd pointFactoryBean.afterPropertiesSet(ConsumerEndpoi ntFactoryBean.java:135)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1477)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1417)
    ... 12 more

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Please read the documentation as it was pointed out earlier by Mark and also go through these samples https://github.com/SpringSource/spri...ration-samples. There are plenty of differrent samples reproducing every possible scenario.

  3. #3
    Join Date
    Sep 2011
    Posts
    167

    Default

    I have gone thru these examples and they r really great one...thanx for the suggestion but still is not able to solve the problem since my channel is queue and I have to do the poller settings as i am extracting the data from my queue through header type router..!!

  4. #4
    Join Date
    Jun 2011
    Location
    Austin, TX
    Posts
    13

    Default

    Try this. where fixed-delay is milliseconds
    Code:
     <int:poller id="poller" default="true" fixed-delay="1000"/>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •