0 Replies Latest reply on May 13, 2014 8:19 AM by sankalp.madaan

    Invocation of EJB 3.0 in JBoss EAP 6.1 GA

    sankalp.madaan

      I am trying to implement my application that consists of a web module and an EJB module in JBoss EAP 6.1 GA. Here are the details:

       

      Interface:

      package pojo;
      import javax.ejb.Remote;
      
      
      
      @Remote
      public interface NORSUtilityLocal {
        public Long generateMessageID();
       }
      
      
      
      

       

      Implementing class:

      package pojo;
      
      import javax.ejb.Stateless;
      
      
      
      @Stateless
      public interface NORSUtilityFacade implements NORSUtilityLocal {
        public Long generateMessageID(){
      /* Do Something */
      }
       }
      
      
      
      
      
      

       

      I am trying to invoke this pojo class using the following code:

       

      NORSUtilityFacade nors = (NORSUtilityLocal) ic
        .lookup("java:global/AppName/EJBJarName/NORSUtilityFacade!pojo.NORSUtilityLocal");
      
      
      

       

      This arrangement work when i run the application in my local(standalone-full.xml). But when i try to run my application in pre production clustered environment (standalone-full-xa.xml) i get the following error:

       

      java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:AppName, moduleName:EJBJarName, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@548cff52

       

      Please let me know if any other information required.