This content has been marked as final.
Show 2 replies
-
1. Re: Getting entity manager
alesj Dec 22, 2008 4:12 AM (in response to adamw)Dig through the code and check what the JNDI name is used? :-)
Then a simple InitialContext::lookup should do. -
2. Re: Getting entity manager
adamw Dec 22, 2008 12:27 PM (in response to adamw)Yeah, well, I took the easier approach of listing everyting in the root and java:/ namespaces but didn't find "EntityManager" there - so I posted here.
But now I read the whole list and found "SessionFactory" - from which I can easily get EMF :)
--
Adam