{
// Initialize
String resolvedJndiName = null;
// Classify the interface
KnownInterfaceType ifaceType = classifyInterface(iface);
// Take appropriate handling depending upon the interface
if (ifaceType.equals(KnownInterfaceType.REMOTE_HOME))
{
resolvedJndiName = this.determineResolvedRemoteHomeJndiName();
}
if (ifaceType.equals(KnownInterfaceType.LOCAL_HOME))
{
resolvedJndiName = this.determineResolvedLocalHomeJndiName();
}
if (ifaceType.equals(KnownInterfaceType.BUSINESS_REMOTE) || ifaceType.equals(KnownInterfaceType.BUSINESS_LOCAL))
{
// Obtain the JNDI Policy
DefaultJndiBindingPolicy policy = this.getJndiPolicy();
// Revert to defaults; have the policy generate the actual name
resolvedJndiName = policy.getJndiName(getEjbDeploymentSummary(), iface, ifaceType);