Hello.

I'd like to inject a Spring Bean to a cxf-se service unit. If I
declare it in the xbean.xml and use a setter in the service unit's
class it is correctly initialized, but later, when I receive a message
in the service unit, I get a NullPointerException saying my bean is
"null". Is it possible that between the deployment of the service unit
and the message being received, my bean has been reset to null? I've
debugged and seen that the setter is only accessed once (during
deployment).

I've done the same thing before injecting beans to servicemix-bean
endpoints, and there it works. I wonder if it is not possible to
inject beans in other components.

Hope you can help. Best regards.

Sebastian Gomez.

Reply via email to