Announcement Announcement Module
Collapse
No announcement yet.
Setting apply-sequence to false in splitter still results in sequence header values Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting apply-sequence to false in splitter still results in sequence header values

    I'm currently using version 2.1.0.RELEASE

    Setting apply-sequence to false in my splitter config still results in sequence headers being set.

  • #2
    I don't see how it can be happening, but i just tested it and here is what i have
    Code:
    <beans xmlns="http://www.springframework.org/schema/beans"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns:int="http://www.springframework.org/schema/integration"
    	xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
    		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
    
    	<int:splitter input-channel="in" apply-sequence="false"/>
    
    </beans>
    
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("config.xml", MyInitializer.class);
    		MessageChannel in = context.getBean("in", MessageChannel.class);
    		QueueChannel reply = new QueueChannel();
    		Message<?> message = MessageBuilder.withPayload(new String[]{"1", "2", "3"}).setReplyChannel(reply).build();
    		in.send(message);
    		System.out.println(reply.receive(100));
    		System.out.println(reply.receive(100));
    		System.out.println(reply.receive(100));
    and output:


    [Payload=1][Headers={timestamp=1329334779111, id=9d0be267-b5d6-4c7f-aaea-0c14ab3dd159, replyChannel=org.springframework.integration.chann el.QueueChannel@3a083b1b}]
    [Payload=2][Headers={timestamp=1329334779111, id=a493d536-6f12-41af-aae9-b80362c3af77, replyChannel=org.springframework.integration.chann el.QueueChannel@3a083b1b}]
    [Payload=3][Headers={timestamp=1329334779112, id=ca3241c9-3508-4eaf-b934-fb2dffc356bb, replyChannel=org.springframework.integration.chann el.QueueChannel@3a083b1b}]

    As you can see there is no sequence header. May be something else is putting it there in your config.

    Comment

    Working...
    X