1 2 Previous Next 16 Replies Latest reply on Feb 9, 2017 3:39 AM by Mrudula Vasudevan Go to original post
      • 15. Re: Remote EJB not working from WAR to EAR
        Wolf-Dieter Fink Master

        Don't think and worrie about too much the domain

        Each of the server instances in the domain is nothing else than a standalone server but sharing the profile and some configuration in the donaim.xml.


        You can simple look into the war application and compare the configuration follow the server-server-group-profile links in the configuration. The servers are started with port-offsets as you might do with standalone-servers.

        And this way is easier to provide as a running example as there is no error prone start of different servers with the correct parameters.

        • 16. Re: Remote EJB not working from WAR to EAR
          Mrudula Vasudevan Newbie

          Hi Marcio,


          I am facing the same issue while doing a client-server invocation from war to ear. I want to propagate the security credentials from war to ear to authenticate the EJBs. Both are using security domains. I am setting the context data in the ClientInterceptor , but it is never being invoked while doing the lookup.


          EJBClientContext.getCurrent().registerInterceptor(0,new JBossLoginClientInterceptor());


          Below is the code snippet for the ejb lookup.

          Properties props = new Properties();

          1. props.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
          2. props.put("org.jboss.ejb.client.scoped.context", "true");// If I remove this code , then Client interceptor is being invoked, but getting the exception java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:cls-calogi-app-, moduleName:jf-security-implementation-4.1.0, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@1e41d80f
          3. props.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false");
          4. props.put("remote.connections", "default");
          5. props.put("remote.connection.default.host", "");
          6. props.put("remote.connection.default.port", "4747");
          7. props.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "false");

          Context ctx = new InitialContext(props);

          JBossLogin server = (JBossLogin) context.lookup("ejb:cls-calogi-app-!com.emirates.jfoundation.security.jboss.ejb.interfaces.JBossLogin");

          1 2 Previous Next