You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/09/19 17:30:40 UTC

[jira] Assigned: (CAMEL-3136) cxfbean creates another instance of the class instead of directly using the referenced bean

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

Claus Ibsen reassigned CAMEL-3136:
----------------------------------

    Assignee: Claus Ibsen

> cxfbean creates another instance of the class instead of directly using the referenced bean
> -------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3136
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3136
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.4.0
>            Reporter: Dmitry Drozdov
>            Assignee: Claus Ibsen
>
> ... this makes it impossible to inject properties to the @WebService class
> <camelContext>
>         <route>
>             <from uri="...." />
>             <to uri="cxfbean:handler" />
>         </route>
> </camelContext>
> <bean id="handler" class="a.b.c.Handler">
>         <property name="prop1" value="5" />
> </bean>
> when "handler" is created by Spring, its 'prop1' is set to '5'
> when the cxfbean:handler is triggered, the 'prop1' is null, because CXF created another instance of Handler instead of using the one created by Spring

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.