}
i = config.getEjbRef().iterator();
while (i.hasNext() == true)
{
EJBRef ejb = (EJBRef) i.next();
String jndi_name = ejb.getEjbRefName();
if (vdh != null)
{
jndi_name = vdh.getEjbRefJndiName(jndi_name);
}
NamingUtil.rebind(sub, ejb.getEjbRefName(), new LinkRef(
jndi_name));
}
i = config.getEjbLocalRef().iterator();
while (i.hasNext() == true)
{
EJBLocalRef ejb = (EJBLocalRef) i.next();
String jndi_name = ejb.getEjbRefName();
if (vdh != null)
{
jndi_name = vdh.getEjbLocalRefJndiName(jndi_name);
}
NamingUtil.rebind(sub, ejb.getEjbRefName(), new LinkRef(
jndi_name));
}
}
finally
{