code: private void updateAppLinkData(AppLinkData linkData, boolean add, J2EEName j2eeName, BeanMetaData bmd) // F743-26072
      {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "updateAppLinkData: " + j2eeName + ", add=" + add);
  
          int numBeans;
          synchronized (linkData)
          {
              linkData.ivNumBeans += add ? 1 : -1;
              numBeans = linkData.ivNumBeans;
  
              // Update the table of bean names for this application, in support
              // of ejb-link.                                                  d429866.1
              updateAppLinkDataTable(linkData.ivBeansByName, add, j2eeName.getComponent(), j2eeName, "ivBeansByName");
  
              // Update the table of bean interfaces for this application, in support
              // of auto-link.                                                 d429866.2
              updateAutoLink(linkData, add, j2eeName, bmd);
  
              // F743-25385CodRv d648723
              // Update the table of logical-to-physical module names, in support of
              // ejb-link.
              // F743-26072 - This will redundantly add the same entry for every
              // bean in the module, but it will remove the entry for the first bean
              // to be removed.  In other words, we do not support removing a single
              // bean from a module.
              updateAppLinkDataTable(linkData.ivModulesByLogicalName, add,
                                     bmd._moduleMetaData.ivLogicalName, j2eeName.getModule(), "ivModulesByLogicalName");
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "updateAppLinkData: " + j2eeName + ", add=" + add + ", numBeans=" + numBeans);
      }
docs: Updates the EJB-link and auto-link data for a bean.
  
  @param linkData
  @param add <tt>true</tt> if data for the bean should be added, or
  <tt>false</tt> if data should be removed
  @param bmd