Figure out one of them: use getDelegate() to get the Toplink em.
jasonw41 wrote:
>
> By the way, above API works for java se. Could anybody tell me how to use
> it in an EJB when the em is obtained by annotation?
>
e.g.:
((oracle.toplink.essentials.ejb.cmp3.EntityManager)em.getDelegate()).getServerSession().getIdentityMapAccessor().printIdentityMaps();
--
View this message in context: http://www.nabble.com/Some-questions-about-HardWeak-SoftWeak-cache-tp17354187p17354704.html
Sent from the java.net - glassfish persistence mailing list archive at Nabble.com.