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:48:41 UTC
[jira] Resolved: (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 resolved CAMEL-3136.
--------------------------------
Fix Version/s: 2.5.0
Resolution: Fixed
trunk: 998687.
Feel free to test the fix in your system as well.
> 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
> Fix For: 2.5.0
>
>
> ... 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.