0 Replies Latest reply on Oct 26, 2016 11:07 AM by neeraj.gupta1

    EJB SCOPED CONTEXT NOT WORKING IN WILDFLY 8.2.1

    neeraj.gupta1

      Hi ,

       

      I need some assistance with remote EJB calls, and the error "java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling".  I am using scoped context property org.jboss.ejb.client.scoped.context=true to lookup my ejb deployed on multiple servers.

       

      Steps which I am following to lookup :-

      1. Loading below properties in lookup class to create initial context:

        

         Properties p = new Properties();

         p.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");

         p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");

         p.put(Context.PROVIDER_URL, "http-remoting://xx.xx.xx.xx:yyyy");

         p.put(Context.SECURITY_PRINCIPAL, "test");

         p.put(Context.SECURITY_CREDENTIALS, "test123");

        p.put("org.jboss.ejb.client.scoped.context","true");

        

      2. I have created remote-outbound-connections in wildfly standalone-full.xml file.

       

      3. I have added ejb recievers in jboss-ejb-client.xml file.

       

       

       

      Still I am getting  java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling. Please let me know what is missing.

       

       

       

      Note: Same ear file is deployed on different servers.

       

      Regards,

      Neeraj