/** * Get the PersistenceUnitDeployment from the MC controller. * * @param name the bean name * @return the PersistenceUnitDeployment */ public PersistenceUnitDeployment lookupPersistenceUnitDeployment(String name) { try { return (PersistenceUnitDeployment) lookup(name, false); } catch (NoSuchInstantiatedBeanException e) { throw new IllegalStateException("PersistenceUnitDeployment " + name + " cannot be found"); } }
/** * Get the EjbReferenceResolver from the MC controller. * * @param name the bean name * @return the EjbReferenceResolver */ public PersistenceUnitDeployment lookupPersistenceUnitDeployment(String name) { try { return (PersistenceUnitDeployment) lookup(name, false); } catch (NoSuchInstantiatedBeanException e) { throw new IllegalStateException("PersistenceUnitDeployment " + name + " cannot be found"); } }