Results 1 to 3 of 3

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

  1. #1
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,795

    Exclamation 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?
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    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

  3. #3
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,795

    Default

    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 at 01:51 PM. Reason: understood last doubt
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

Posting Permissions

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