• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate locking in 2nd level cache  RSS feed

Ben Stokes
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I've got a fairly basic question about locking and transactions but I can't find the answer anywhere.

We're using JBoss EJB3s to handle all our DB work alongside Hibernate. Hibernate is hooked into the JBoss transaction manager and everything works fine. We're also using JBoss Cache as the 2nd level cache and again everything works fine.

However, we're having a problem with locks being taken on the JBoss Cache when they're not needed and it suddenly struck me that I don't know why we need to use locking on the cache at all. If Hibernate and JBoss are handling the transactions can we just turn off the JBoss Cache locking completely?


Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!