use of org.apache.openejb.assembler.classic.EnterpriseBeanInfo in project aries by apache.
the class EJBExtender method processJPAMappings.
private void processJPAMappings(EjbJarInfo ejbInfo) {
for (EnterpriseBeanInfo ebi : ejbInfo.enterpriseBeans) {
for (PersistenceUnitReferenceInfo pui : ebi.jndiEnc.persistenceUnitRefs) {
pui.location = new ReferenceLocationInfo();
pui.location.jndiName = "aries/integration/unit/" + pui.persistenceUnitName;
}
for (PersistenceContextReferenceInfo pci : ebi.jndiEnc.persistenceContextRefs) {
pci.location = new ReferenceLocationInfo();
pci.location.jndiName = "aries/integration/context/" + pci.persistenceUnitName;
}
}
}
Aggregations