Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Invalidating session cache programmatically?

On Wed, Nov 30, 2011 at 2:25 PM, Laird Nelson <ljnelson@xxxxxxxxx> wrote:
In an integration test framework of ours that makes use of embedded Glassfish and its bundled EclipseLink JPA provider, I am looking to empty the L2 cache in between tests. 

Supposing I could get my hands on this MBean method: http://www.eclipse.org/eclipselink/api/2.3/org/eclipse/persistence/services/mbean/MBeanRuntimeServicesMBean.html#invalidateAllIdentityMaps%28%29

Would that do the trick?

Thanks,
Laird

--
http://about.me/lairdnelson


Back to the top