camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PhilippJ (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-6127) Its impossible to inject a custom InflightRepository due to a copy-and-paste bug
Date Mon, 04 Mar 2013 16:43:13 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

PhilippJ updated CAMEL-6127:
----------------------------

    Description: 
We wanted to inject/autowire (with a Spring context.xml) a custom InflightRepository as described
here http://camel.apache.org/advanced-configuration-of-camelcontext-using-spring.html
but this is not possible due to an obvious copy-and-past bug in 
org.apache.camel.core.xml.AbstractCamelContextFactoryBean.afterPropertiesSet()


Line 182

InflightRepository inflightRepository = getBeanForType(InflightRepository.class);
        if (delayer != null) {
            LOG.info("Using custom InflightRepository: " + inflightRepository);
            getContext().setInflightRepository(inflightRepository);
        }


is:
"if (delayer != null)" 

should be:
"if (inflightRepository != null)"


  was:
We wanted to inject/autwire (with a Spring context.xml) a custom InflightRepository as described
here http://camel.apache.org/advanced-configuration-of-camelcontext-using-spring.html
but this is not possible due to an obvious copy-and-past bug in 
org.apache.camel.core.xml.AbstractCamelContextFactoryBean.afterPropertiesSet()


Line 182

InflightRepository inflightRepository = getBeanForType(InflightRepository.class);
        if (delayer != null) {
            LOG.info("Using custom InflightRepository: " + inflightRepository);
            getContext().setInflightRepository(inflightRepository);
        }


is:
"if (delayer != null)" 

should be:
"if (inflightRepository!= null)"


    
> Its impossible to inject a custom InflightRepository due to a copy-and-paste bug
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-6127
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6127
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-blueprint, camel-spring
>    Affects Versions: 2.10.3
>         Environment: Windows7 64bit jdk7 camel 2.10.3
>            Reporter: PhilippJ
>            Assignee: Claus Ibsen
>             Fix For: 2.9.6, 2.10.5, 2.11.0
>
>
> We wanted to inject/autowire (with a Spring context.xml) a custom InflightRepository
as described here http://camel.apache.org/advanced-configuration-of-camelcontext-using-spring.html
> but this is not possible due to an obvious copy-and-past bug in 
> org.apache.camel.core.xml.AbstractCamelContextFactoryBean.afterPropertiesSet()
> Line 182
> InflightRepository inflightRepository = getBeanForType(InflightRepository.class);
>         if (delayer != null) {
>             LOG.info("Using custom InflightRepository: " + inflightRepository);
>             getContext().setInflightRepository(inflightRepository);
>         }
> is:
> "if (delayer != null)" 
> should be:
> "if (inflightRepository != null)"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message