code: public EJSHome getHomeByName(String application, String beanName)
                      throws EJBNotFoundException
      {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "getHomeByName : " + application + ", " + beanName);
  
          AppLinkData linkData = getAppLinkData(application); // F743-26072
          if (linkData == null)
          {
              if (isTraceOn && tc.isDebugEnabled())
                  Tr.debug(tc, "application " + application + " not found");
          }
          else
          {
              J2EEName j2eeName;
              synchronized (linkData)
              {
                  j2eeName = findApplicationBean(linkData, application, beanName);
              }
  
              if (j2eeName != null)
              {
                  EJSHome retHome = (EJSHome) getHome(j2eeName);
  
                  if (retHome != null)
                  {
                      if (isTraceOn && tc.isEntryEnabled())
                          Tr.exit(tc, "getHomeByName : " + retHome.getJ2EEName());
                      return retHome;
                  }
              }
              else
              {
                  if (isTraceOn && tc.isDebugEnabled())
                      Tr.debug(tc, "EJB " + beanName + " not found");
              }
          }
  
          EJBNotFoundException ex =
                          new EJBNotFoundException("EJB named " + beanName +
                                                   " not present in application " +
                                                   application + ".");
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "getHomeByName : " + ex);
          throw ex;
      }
docs: d429866.1