this.factory = factory;
return null;
inject(ctx, ctx.getInstance());
StatefulBeanContext ctx = (StatefulBeanContext)beanContext; EntityManager pc = ctx.getExtendedPersistenceContext(factory.getKernelName()); if (pc == null) { pc = factory.createEntityManager(); ctx.addExtendedPersistenceContext(factory.getKernelName(), pc); }
throw new RuntimeException("Illegal operation");