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.