I want to access a persistent unit from a 'Servlet' in JBoss 4.2.0GA. Since this version is not fully EE5 compatible, I can't use dependency injection using the PersistentUnit annotations. So I have no choice but to do a JNDI lookup - Now can anyone please tell me how this can be done?