[Resin-interest] Amber, EntityManagerFactory JNDI-Lookup

2008-10-15 Thread Jan Kriesten
Hi, I'm currently a bit puzzled since I don't get to work what yesterday has already. As I understand it should be possible to lookup an EntityManagerFactory via JNDI as java:comp/env/persistence/PersistenceUnit/xxx - but I just can't get that to work. My persistence.xml has

Re: [Resin-interest] Amber, EntityManagerFactory JNDI-Lookup

2008-10-15 Thread Scott Ferguson
On Oct 15, 2008, at 10:13 AM, Jan Kriesten wrote: Hi, I'm currently a bit puzzled since I don't get to work what yesterday has already. As I understand it should be possible to lookup an EntityManagerFactory via JNDI as java:comp/env/persistence/PersistenceUnit/xxx The official

Re: [Resin-interest] Amber, EntityManagerFactory JNDI-Lookup

2008-10-15 Thread Jan Kriesten
Hi Scott, Technically, the persistence.xml scanning does not automatically populate JNDI with the EntityManager. It populates an app-server dependent space (in Resin it's WebBeans) that's available for injection using @PersistenceUnit and @PersistenceContext. the wiki on