-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Second level cache problem?
PostPosted: Fri Apr 07, 2006 6:47 pm 
Beginner
Beginner

Joined: Tue Mar 21, 2006 5:49 pm
Posts: 20
I am using ehcache as second level cache and it's working fine until I call session.refresh after I have saved an object. If I look at the log, HB tells me this..:

Code:
TwoPhaseLoad    - adding entity to second-level cache: [no.havleik.dt.model.OrdreNew#6343]
08.04.2006 00:43:10,327 DEBUG ReadWriteCache  - Caching: no.havleik.dt.model.OrdreNew#6343
08.04.2006 00:43:10,327 DEBUG EhCache         - key: no.havleik.dt.model.OrdreNew#6343
08.04.2006 00:43:10,327 DEBUG ReadWriteCache  - Item was locked: no.havleik.dt.model.OrdreNew#6343
08.04.2006 00:43:10,327 DEBUG TwoPhaseLoad    - done materializing entity [no.havleik.dt.model.OrdreNew#6343]


As long as I don't call refresh after I save, I get no locks... (The reason why I call refresh, is because I am using triggers...)

How can I unlock this object?


Regards,

BTJ

_________________
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.