Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
goq goq
Transactions in sharded environment
July 29, 2013 11:17 PM

goq goq

Rank: New Member

Posts: 1

Join Date: July 25, 2013

Recent Posts


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.