Announcement Announcement Module
Collapse
No announcement yet.
Possible bug with int:recipient-list-router + output-channel Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Possible bug with int:recipient-list-router + output-channel

    Hello guys

    Working with SI 2.0.5 and doing some experiments with routers, I found out the follow situation

    If I use

    Code:
    <int:recipient-list-router input-channel="inicio" >
    		<int:recipient channel="dvdChannel" />
    		<int:recipient channel="instrumentoMusicalChannel"/>		
    </int:recipient-list-router>
    work fine

    But if I add an available attribute called output-channel, which STS 2.7.0 let me select and configure

    Code:
    <int:channel id="prefinal" />
    
    <int:recipient-list-router input-channel="inicio" output-channel="prefinal">
    	<int:recipient channel="dvdChannel" />
    	<int:recipient channel="instrumentoMusicalChannel"/>		
    </int:recipient-list-router>
    I receive instead

    Code:
    Exception in thread "main" 
    org.springframework.beans.factory.BeanCreationException: 
    Error creating bean with name 'org.springframework.integration.router.RecipientListRouter#0': 
    Error setting property values; 
    nested exception is 
    org.springframework.beans.NotWritablePropertyException: 
    Invalid property 'outputChannel' of bean class 
    [org.springframework.integration.router.RecipientListRouter]: 
    Bean property 'outputChannel' is not writable or has an invalid setter method. 
    Does the parameter type of the setter match the return type of the getter?
    	at ...
    Caused by: org.springframework.beans.NotWritablePropertyException: 
    Invalid property 'outputChannel' of bean class
    [org.springframework.integration.router.RecipientListRouter]: 
    Bean property 'outputChannel' is not writable or has an invalid setter method. 
    Does the parameter type of the setter match the return type of the getter?
    	at ...
    Is it a bug?

  • #2
    Yes, can you please open a JIRA for that? The 'output-channel' attribute should not be allowed on the 'recipient-list-router' element. In fact, any router's actual purpose is to determine the output channel. That's why the optional *default* output channel is the only configuration option that should be allowed there.

    thanks,
    Mark

    Comment


    • #3
      Hello Mark

      Yes, can you please open a JIRA for that?
      Done, https://jira.springsource.org/browse/INT-2053

      The 'output-channel' attribute should not be allowed on the 'recipient-list-router' element.
      I see now

      In fact, any router's actual purpose is to determine the output channel.
      Agree, only choice one among the others, of course in recipient-list-router the same Message is sent or copied to all the output channels, since it has the same behavior than a *Publish-Subscribe* (in some way of course)

      My Best Regards!
      Last edited by dr_pompeii; Aug 15th, 2011, 01:51 PM. Reason: understood last doubt

      Comment

      Working...
      X