This content has been marked as final. Show 4 replies
Do you have to buy Terracotta or is it easy to set up a distributed ehcache?
no, you don't have to use distributed caching assuming you are using transactions correctly. this setup should work just fine as is, so you most likely have problems in your code.
I don't get any exceptions when I test it with 4 threads on my local machine. The server has 24 threads. I start them via JMS.
But don't the two hibernate caches have to communicate so they are in synch? Transactions? Hibernate handles all of that for me.
Edited by: 853368 on 2011-aug-26 01:52
853368 wrote:WRONG. Hibernate (and JTA) HELPS you to do it, but you are still the captain on the ship and should rightfully want to keep it that way too. If you don't want to at least think about it then you are going to fall flat on your face eventually and usually in a production environment with people yelling at you that there is a deadline. Personal experience speaking here :(
Transactions? Hibernate handles all of that for me.
Don't offload responsibility to tools, use the tools to make your job easier.