gatein/gatein-portal — pull request #60 by mposolda (2012-06-29 09:11:10+00:00)
Title: GTNPORTAL-2485

1) Add new JTAUserTransactionLifeCycleService with methods for obtain, start and commit JTA transaction.
So I removed those methods for managing JTA transaction from PicketlinkIDMOrganizationServiceImpl and add it into separate service, so other services can use it directly. PicketlinkIDMOrganizationServiceImpl is now consumer of this service. But parameter "useJTA" of PicketlinkIDMOrganizationServiceImpl is still here and value of this parameter is still used if transaction will be started or not. So no change in configuration.

2) Sync in POMDataStorage before sending page query. We nee to commit current JTA transaction and start new if JTA is enabled and there are pending changes in MOP. This will ensure that Page Query will always return latest stuff from JCR persistent storage.