When looking up EntityManager, EntityManagerFactory or SessionFactory objects in JNDI I'm getting back instances of javax.naming.Reference instead of the correct objects.
According to specifications, forum posts and examples I should be able to access these container-managed objects via JNDI.
The context is an EAR-packaged EJB3 application running on JBoss AS 4.2.0.
Please help. I've tried everything. I'm at my wit's end now. :(