You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Jazon <re...@gmail.com> on 2008/12/12 06:27:05 UTC

entityManagerFactory JNDI

is entityManagerFactory has JNDI name?
I want to use it in my testing code.
Thanks

Re: entityManagerFactory JNDI

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Fri, Dec 12, 2008 at 6:27 AM, Jazon <re...@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