Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

TransactionManager and Isolation Levels

Hello,

Just a quick question about an exception : org.springframework.transaction.InvalidIsolationLevelException: TransactionManager does not support custom isolation levels. XAP 7.1.4

Here the pu.xml :

<context:annotation-config/> <tx:annotation-driven transaction-manager="transactionManager"/> <os-core:space id="space" url="jini://*/*/space"/> <os-core:giga-space id="gigaspace" space="space" tx-manager="transactionManager"/> <os-core:distributed-tx-manager id="transactionManager"/>

When I add an annotation like this one : @Transactional (isolation = Isolation.READ_COMMITTED) on a class that performs some operations on the space, I got the InvalidIsolationLevelException. Without specifying the isolation level (@Transactional only) that woks fine and I can see transactions in the GS UI.

So is the custom isolation levels supported by GS ? or Am I doing something wrong ? Thanks in advance.

Nouh

Edited by: Noe Noe on Jun 21, 2012 6:26 AM

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3876]{quote}

asked 2012-06-20 10:42:43 -0500

nouh gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

READ_COMMITTED is fully supported. Can you post a test? Can you test with XAP 9?

Shay

answered 2012-06-20 10:59:48 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

I give it a quick try in XAP 9.0 and it didn't work either.

Edited by: Noe Noe on Jun 21, 2012 7:27 AM

nouh gravatar imagenouh ( 2012-06-21 04:58:22 -0500 )edit

{quote:title=shay hassidim wrote:}{quote} READ_COMMITTED is fully supported. Can you post a test? Can you test with XAP 9?

Shay

Hi,

Here a simple project that should reproduce the Isolation Levels issue.

Just run the DeploySpace class and observe the results. You can simply comment/uncomment the (isolation = Isolation.READ_COMMITTED) on the the Feeder class.

Nouh.

Edited by: Noe Noe on Jun 21, 2012 9:26 AM

nouh gravatar imagenouh ( 2012-06-21 09:18:56 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-06-20 10:42:43 -0500

Seen: 104 times

Last updated: Jun 20 '12