Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » [CACHE L2] object result of find operation is not saved in cache L2 ???(cache l2 is activated. and User is cachable.)
[CACHE L2] object result of find operation is not saved in cache L2 ??? [message #1155038] Fri, 25 October 2013 16:48 Go to next message
Marouane Marouane is currently offline Marouane Marouane
Messages: 6
Registered: October 2013
Junior Member
Hi
Env :
Oracle 11.2
EclipseLink 2.5 (cache L2 [true], dcn listener on oracle event is used )
Tomcat 7
Windows.


I notice that after find operation on class User (cachable true) with primary key , eclipselink don't create any entry cache for my find result .


Why ?? in wich cases we can have this behavor ?


Thx.
Re: [CACHE L2] object result of find operation is not saved in cache L2 ??? [message #1164159 is a reply to message #1155038] Thu, 31 October 2013 13:23 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1034
Registered: July 2009
Senior Member
How are you checking there is no entry? EclipseLink might bypass the shared cache when reading from a transaction, to avoid polluting the shared cache with uncommitted data.
icon7.gif  Re: [CACHE L2] object result of find operation is not saved in cache L2 ??? [message #1185964 is a reply to message #1164159] Thu, 14 November 2013 11:31 Go to previous message
Marouane Marouane is currently offline Marouane Marouane
Messages: 6
Registered: October 2013
Junior Member
the cache wasn't used by eclipselink at the read operation
because spring dialect jpa force eclipselink to open jdbc connection
on read operation.

look at spring jira :
Spring Framework SPR-7753
Spring disables shared cache in EclipseLink
Previous Topic:Convert ?=call storedproc(?,?,?) to JPA
Next Topic:EclipseLink & Websphere cluster & Oracle 11g2 DCN
Goto Forum:
  


Current Time: Fri Oct 24 21:33:28 GMT 2014

Powered by FUDForum. Page generated in 0.01674 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software