Details

  • User impact:
    Low
  • Effort points:
    3
  • Similar Issues:
    None

Description

Service components created by the Mule object factories (all except <spring-object>) are not injected by Spring.
Also, the Mule XxxAware interfaces do not work (same reason I guess)

A workaround is to define the component as a Spring bean and reference it from the service component using the <spring-object ref="springId"> object factory.

Activity

Hide
Daniel Feist added a comment -

Hi,
This is by design, mule-core doesn't depend on spring and so object factories (except spring-object) do not use spring or create the instances as spring beans. I believe the Mule ServiceAware interface can be used anyway.

Show
Daniel Feist added a comment - Hi, This is by design, mule-core doesn't depend on spring and so object factories (except spring-object) do not use spring or create the instances as spring beans. I believe the Mule ServiceAware interface can be used anyway.
Hide
Dirk Olmes added a comment -

Putting this on the backlog as I only see one TODO left: confirm that the ServiceAware injection works and maybe updating the documentation.

Show
Dirk Olmes added a comment - Putting this on the backlog as I only see one TODO left: confirm that the ServiceAware injection works and maybe updating the documentation.
Hide
Daniel Feist added a comment -

This is issue simply defined expected behavior.

Show
Daniel Feist added a comment - This is issue simply defined expected behavior.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: