On Fri, Dec 12, 2008 at 6:27 AM, Jazon <reme...@gmail.com> wrote: > is entityManagerFactory has JNDI name? > I want to use it in my testing code.
For example: @PersistenceUnit It's bound to the local jndi space and its name is the one you specified in the corresponding persistence.xml file. Dunno what exactly the name is. I'd use JNDI API to query java:comp/env namespace - list() springs to my mind - and see what there is. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl