(Opens New Window)
Mark as an Answer
Transactions in sharded environment
July 29, 2013 11:17 PM
Rank: New Member
Join Date: July 25, 2013
Anyone familiar with transactions in custom SB service in multi-instance portal environment with database sharding?
I have generated simple (example - Foo) service with Service Builder and created addFoo_PortletRollback method which throws exception after invoking regular addFoo method.
I expected Foo entity won't be persisted in DB after invoking addFoo_PortletRollback.
When sharding is disabled everything works like it should and after exception is thrown - transaction is rolled back and no changes in DB,.
But when invoking the same method in sharded environment Foo entity remains in DB.
Did anyone experienced the same problem and found the solution to it or any workaround?
I'm using Liferay 6.1.1-ce-ga2 with oracle 11g DB.
Sign in to vote.
Please sign in to flag this as inappropriate.