Emanuel Muckenhuber wrote:
Seems you misunderstood me. I was not talking about having IOC in the domain.xml at all. I said using IOC for configuration is a problem, since ProfileService does not understand injection. Just look at how persistence overrides are applied to the e.g. the service-binding-manager - where we actually override properties with <inject /> with the beans constructed within profileservice - based on the peristence information. Again this has nothing to do with the actual domain.xml, it is more about the mapping and override layer.
The service binding manager should be obviated by the domain model, so there should be no need for injection overrides. Put another way, anything managed by domain.xml should not be allowed in some arbitrary beans.xml descriptor.