Returns the {@link JBossEnterpriseBeanMetaData} for the passed
ejbLink
. The {@link JBossEnterpriseBeanMetaData}is resolved using the {@link JBossMetaData} found in the
deploymentUnit
.
This method first obtains the top level deployment unit for the passed deploymentUnit
through a call to {@link DeploymentUnit#getTopLevel()}. It then starts searching for an appropriate EJB, within the top level deployment unit and its child deployment units, until it finds one.
This method will return null, if an appropriate {@link JBossEnterpriseBeanMetaData} cannot be found.
@param ejbLink The ejbLink which has to be resolved
@param deploymentUnit The deployment unit within which the EJB has to be scanned for
@return