[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Techniques for interrogating what objects are held in EclipseLink 1.0.1 cache?
|
Hi Doug,
There is some public API on IdentityMapAccessor you should be able to use.
Take a look at the "getAllFromIdentityMap" methods.
-Tom
Gschwind, Doug wrote:
Hello,
Ideally, I would like to know how many instances of each JPA mapped
class are held in EclipseLink identity maps, and in some cases, the
primary keys of those instances per Class. I was thinking the way to do
this was to leverage the IdentityMapAccessor exposed by a Session
instance, then simply iterate the ClassDescriptor instances bound into
the Session. This requires use of
org.eclipse.persistence.internal.sessions.IdentityMapAccessor and
org.eclipse.persistence.internal.identitymaps.IdentityMap classes that
do not appear to be part of the public API.
I am wondering if a different means is available, possibly through JMX
Mbeans or other mechanisms?
Thanks,
Doug
The contents of this electronic mail message and any attachments are confidential, possibly privileged and intended
for the addressee(s) only. Only the addressee(s) may read, disseminate, retain or otherwise use this message. If
received in error, please immediately inform the sender and then delete this message without disclosing its contents
to anyone.
------------------------------------------------------------------------
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users