For future ref, see:
Btw, if you're using Hibernate 3.5 or higher, I'd recommend using Infinispan as 2LC instead. It's much faster, easier to configure
Thank you for the link on ref, I've looked over it. And again it says, that you have to manually set your query cachable. It's understandable. But what with entities cache?
Does annotation @Cache on entities is used only to specify caching transaction type/region etc., but it cannot turn on cachable feature for them?
BTW, Jboss cache is selected by the customer. Can you use it in clustered transactional production env?
Not for queries. Queries have to be set manually with setCacheable(). Entities and collections need to have @Cache annotation or define it via XML.
Re: JBoss Cache and 2LC
Of course you can, AS 5 does that for EJB3 entities without major problems