Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Isolated L1 cache lifetime with no @Transactional boundary
Isolated L1 cache lifetime with no @Transactional boundary [message #1740250] Wed, 10 August 2016 17:23 Go to next message
Dave Brosius is currently offline Dave BrosiusFriend
Messages: 24
Registered: July 2009
Junior Member
If i have an entity configured to use an Isolated cache, and am reading objects of that type without having a spring @Transactional annotation explicitly managing the transaction, how long does that cache live for, ie when are those entities gc'ed?
Re: Isolated L1 cache lifetime with no @Transactional boundary [message #1741078 is a reply to message #1740250] Mon, 22 August 2016 19:32 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1342
Registered: July 2009
Senior Member
When is your EntityManager GC'd? By default, the EntityManager will keep a reference to all managed entities - anything read from it - and so they cannot be collected unless you occasionally clear the EntityManager or it is itself garbage collected.
Previous Topic:Moxy reading in a stream of a large JSON file object by object.
Next Topic:Cursor in Eclipselink lazy loading
Goto Forum:

Current Time: Wed Apr 01 21:53:49 GMT 2020

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

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

Back to the top