if (jbossEnv == null && specEnv == null)
return;
super.merge(jbossEnv, specEnv, overridenFile, overrideFile, mustOverride);
EJBLocalReferencesMetaData ejbLocalRefs = null;
EJBLocalReferencesMetaData jbossEjbLocalRefs = null;
PersistenceContextReferencesMetaData specPersistenceContextRefs = null;
PersistenceContextReferencesMetaData jbossPersistenceContextRefs = null;
if (specEnv != null)
{
ejbLocalRefs = specEnv.getEjbLocalReferences();
specPersistenceContextRefs = specEnv.getPersistenceContextRefs();
}
if (jbossEnv != null)
{
jbossEjbLocalRefs = jbossEnv.getEjbLocalReferences();
jbossPersistenceContextRefs = jbossEnv.getPersistenceContextRefs();
}
else
{
// Use the merge target for the static merge methods
jbossEjbLocalRefs = this.getEjbLocalReferences();
jbossPersistenceContextRefs = getPersistenceContextRefs();
}
EJBLocalReferencesMetaData mergedEjbLocalRefs = EJBLocalReferencesMetaData.merge(jbossEjbLocalRefs, ejbLocalRefs, overridenFile, overrideFile);
if (mergedEjbLocalRefs != null)
this.setEjbLocalReferences(mergedEjbLocalRefs);
// Need to set the jndi name from resource mgr if referenced
ResourceReferencesMetaData jbossResRefs = getResourceReferences();