7 Replies Latest reply on Jan 3, 2007 2:29 PM by Anil Saldanha

    EJB References

    Anil Saldanha Master

      Scott, the following code in org.jboss.ejb.EjbUtil does not make sense:

      private static String resolveLink(MBeanServer server, DeploymentInfo di, String link, boolean isLocal)
       {
      ...
      else
       {
       // <ejb-link> contains a Bean Name, scan the DeploymentInfo tree
       DeploymentInfo top = di;
       while (top != null)
       {
       top = top.getParent();
       }
      
       return resolveAbsoluteLink(top, link, isLocal);
       }
      }
      
       private static String resolveAbsoluteLink(DeploymentContext ctx, String link, boolean isLocal)
       {
       ....
       ApplicationMetaData appMD = ctx.getTransientAttachments().getAttachment(ApplicationMetaData.class);
       if (appMD != null)
       {
       ...
       }
      
      


      Because of the while loop in the first method, the deployment context passed to the second method is always null.

      Can you check and fix?