• Bug
  • Status: Closed
  • 1 Critical
  • Resolution: Fixed
  • ehcache-core
  • lorban
  • Reporter: zaraki
  • April 18, 2011
  • 0
  • Watchers: 0
  • July 27, 2012
  • September 22, 2011

Attachments

Description

1.Local Tx enabled via ehcache.xml And added line cache.getCacheConfiguration().setTransactionalMode(“OFF”); before performing cache operations. Still get the Transaction not started error. 2.No transactionalMode by default in ehcache.xml Set cache.getCacheConfiguration().setTransactionalMode(“LOCAL”); before performing cache operations. Performed put operations on cache without being enclosed in the transaction, no complaints from ehcache. Have attached the ehcache.xml and my test code.

Comments

Ludovic Orban 2011-04-19

The transactional mode cannot be changed on the fly.

Calling setTransactionalMode() after the cache is initialized should throw an exception but actually doesn’t. We’ll fix that.

Fiona OShea 2011-04-19

Please update to throw exception which has a better error message

Ludovic Orban 2011-09-22

Fixed in trunk