Announcement Announcement Module
Collapse
No announcement yet.
cannot use <dispatcher> in channel Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • cannot use <dispatcher> in channel

    Hello all
    i am trying to define a dispatcher for my channel
    here's my config
    Code:
    <si:thread-pool-task-executor id="pool" core-size="10" max-size="20"
    		queue-capacity="20" keep-alive-seconds="120" />
    	
    
    <si:channel id="fileStoreChannel">
    		<si:dispatcher task-executor="pool"/>
    	</si:channel>
    but i am getting back this
    Code:
    Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 45 in XML document from class path resource [config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'si:dispatcher'. One of '{"http://www.springframework.org/schema/integration":queue, "http://www.springframework.org/schema/integration":priority-queue, "http://www.springframework.org/schema/integration":rendezvous-queue, "http://www.springframework.org/schema/integration":interceptors}' is expected.
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
    Still, according to schema and reference docs, that declaration should be correct...

    regards
    marco

  • #2
    The ExecutorChannel was introduced in 1.0.3. Do you use an older SI version?
    Alex

    Comment

    Working...
    X