First of all, you overriding the wrong bean id. If you look at the Broadleaf CustomerServiceImpl, it is annotated with @Service("blCustomerService"), meaning "blCustomerService" should be the bean id that you are overriding:
Code: Select all
<bean id="blCustomerService" class="com.xxx.core.service.CustomEncryptionServiceImpl" />
Note that I also do not have the scope as prototype; you shouldn't need prototype unless you have a very specific use case that you haven't notated. Really, the only classes that definitely
should have the scope as "prototype" are your entity bean definitions (that are in mycompany-core-applicationContext-entity.xml).
The other problem is that you should really be overriding services in a different application context file; one that is specified in the "patchConfigLocation" context parameter in web.xml. I would probably put this override in mycompany-applicationContext.
Doing those 2 things should alleviate your issues.