1 Reply Latest reply on Mar 29, 2010 11:04 AM by wolfgangknauf

    @LocalBinding not honored in JBoss 4.2.x?

    henrik242

      Hi.

       

      I am migrating EJB3's from JBoss 4.0.4 to 4.2.3, but I cannot get jndiBinding in @LocalBinding to work properly.  This works as it should in 4.0.4 and 5.1:

       

      {code}

      import org.jboss.ejb3.annotation.LocalBinding; // for JBoss 4.2.x and 5.x
      
      
      //import org.jboss.annotation.ejb.LocalBinding; // for JBoss 4.0.x
      @Stateless
      @Local(BillingFacade.class)
      @LocalBinding(jndiBinding = "howdy/sailor/local")
      public class BillingFacadeBean implements BillingFacade {
      {code}

       

      In 4.2.3, on the other hand, this is replaced with a generated name (ear name + bean name + local):

       

       

      {code}

      2010-03-29 13:39:32,917 DEBUG [org.jboss.ejb3.stateless.BaseStatelessProxyFactory] Binding proxy for BillingFacadeBean in JNDI at app-ear/BillingFacade/local{code}

       

      Why does this happen?