1 Reply Latest reply on Nov 12, 2013 11:02 AM by igarashitm

    Problem in invoking a Remote EJB in JBoss.5.1.0 GA Server from my local desktop ejb in same jboss version

    velraman

      Hi JBoss experts,

      We need a to do a POC on calling remote EJB from my local ejb, both jboss servers running on same version Jboss.5.1.0 GA.

      We are getting so many problems in implementing this.

      I have the following jars included in jboss5.1.0 GA of my client.

       

       

      12-11-2013  10:52            45,105 jboss-ejb-api_3.1_spec-1.0.1.Final.jar
      12-11-2013  12:25           331,491 jboss-ejb-client-2.0.0.Beta3.jar
      12-11-2013  10:53            60,539 jboss-logging-3.1.0.CR2.jar
      12-11-2013  10:53           225,132 jboss-marshalling-1.3.4.GA.jar
      12-11-2013  10:53            80,939 jboss-marshalling-river-1.3.4.GA.jar
      05-11-2013  19:22           163,635 jboss-remote-naming-1.0.6.Final.jar
      12-11-2013  15:25           238,918 jboss-remoting-3.2.16.GA.jar
      12-11-2013  10:54            88,458 jboss-sasl-1.0.0.Beta9.jar
      12-11-2013  10:54            11,209 jboss-transaction-api_1.1_spec-1.0.0.Final.jar
      12-11-2013  10:54           237,846 xnio-api-3.0.0.CR7.jar
      12-11-2013  10:55            78,884 xnio-nio-3.0.0.CR7.jar

       

      I have the code of getting the context as well.

       

                   Properties env = new Properties();
                   env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
                   env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
                   env.put(Context.PROVIDER_URL, "jnp://10.86.24.7:1099");
                   InitialContext context = new InitialContext(env);            System.out.println("context initialized successfully.");

       

       

      Do you have any documentation of how to connect and invoke remote EJB specifically for Jboss5.1.0. GA (NOT for JBoss AS7 or 6)??

      Please advice experts!!!!