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

    @LocalBinding not honored in JBoss 4.2.x?

    Henrik Aronsen Novice



      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:



      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
      @LocalBinding(jndiBinding = "howdy/sailor/local")
      public class BillingFacadeBean implements BillingFacade {


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




      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?