question: with both deep and shallow extended persistence context inheritance , a bean creating another local bean via jndi lookup will also use the extended persistence context inheritance rules . this tests that two levels of jndi lookup does use the same xpc . see http://java.net/projects/jpa-spec/lists/jsr338-experts/archive/2012-06/message/28 for more details than the jpa 2.0 specification includes . concode_field_sep String ARCHIVE_NAME concode_elem_sep InitialContext iniCtx concode_field_sep T lookup concode_elem_sep void testShouldGetEjbExceptionBecauseEPCIsAddedToTxAfterPc concode_elem_sep void testChildInheritanceFromParentExtendedPersistenceContextViaBusinessMethodUsingJndiLookup concode_elem_sep Archive<?> deploy
target: void function ( ) { TopLevelBean loc0 = lookup ( "srini_string" , TopLevelBean . class ) ; loc0 . induceCreationViaJNDILookup ( ) ; }