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.
|