persistence@glassfish.java.net

Re: Some questions about HardWeak/SoftWeak cache

From: jasonw41 <jasonw_at_fast.fujitsu.com.au>
Date: Tue, 20 May 2008 19:22:22 -0700 (PDT)

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.