0 Replies Latest reply on Nov 9, 2013 8:23 PM by Gabriel Ozeas

    [Remoting3] Call EJBs in JBoss 4.2.3 using JBoss 7 jbossall-client

    Gabriel Ozeas Newbie

      Hi guys,

       

      I'm trying to write functional tests that executes operations in JBoss 4 instances and JBoss 7 instances. So the test calls JMX services using JMX Connector in both servers.

      So i'm using jboss cliente from JBoss 7.

       

              <dependency>
                  <groupId>org.jboss.as</groupId>
                  <artifactId>jboss-as-ejb-client-bom</artifactId>
                  <type>pom</type>
                  <version>7.1.1.Final</version>
              </dependency>
             
              <dependency>
                  <groupId>org.jboss.as</groupId>
                  <artifactId>jboss-as-jmx</artifactId>
                  <type>pom</type>
                  <version>7.1.1.Final</version>
              </dependency>
             
              <dependency>
                  <groupId>org.jboss.as</groupId>
                  <artifactId>jboss-as-jms-client-bom</artifactId>
                  <type>pom</type>
                  <version>7.1.1.Final</version>
              </dependency>
      
      

       

      And all this works after some configurations:

       

      JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://{remote_server}:{rmi_registry_port}/jmxrmi");
      JMXConnector conn = JMXConnectorFactory.connect(url, null);
      MBeanServerConnection server = conn.getMBeanServerConnection();
      
      

       

      But i need also call a remote EJB in JBoss 4.

      So i can't use this jndi configuration:

       

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.provider.url=jnp://{remove_server}:1099
      java.naming.factory.url.pkgs=org.jboss.naming
      
      

       

      So, my question is: there is a way to call the JBoss 4 EJB using jboss client from JBoss 7 ( maybe there is, because i can use jmx using rmi)?

       

      Thanks,

      Gabriel