KocsisDaniel/liferay-portal — pull request #153 by vilmospapp (2012-10-31 14:48:22+00:00)
Title: [TECHNICAL SUPPORT] LPS-30715 Added ShardUserAdvice

Hi Dani,

The functions from UserLocalService with companyId parameter are not handled correctly in sharded environment. I discussed it with Alex that a new Advice could be a good solution to handle this situation.

I also created an extensive integration test for it as well. Please note, that you need to setup sharding with with two datasources for testing (jdbc.default and jdbc.one) and modify the spring.configs, to enable shard-data-source-spring.xml usage. Additionally you can set shard.selector=com.liferay.portal.dao.shard.ManualShardSelector in your properties file.

If you have any concerns, please don't hesitate to ask me.

Regards,
Vilmos