2 Replies Latest reply on Sep 23, 2004 3:51 PM by scothall

    calling local EJBs from an MBean

    scothall Newbie

      When I try to call a local EJB from an MBean, I am forced to add a prefix of "local/" to the bean that I am trying to invoke. Is there any way to change this behavior?

      Code Example:

      MyLocalHome home = (LocalHome)naming.lookup(local/BeanName);
      MyLocal bean = home.create();

      Config Example:

       <display-name>Local Bean</display-name>
       <local>myPackage.MyLocal </local>
       <ejb-class>myPackage.MyLocalBean </ejb-class>

      Can anyone help me out?