4 Replies Latest reply on Jan 25, 2016 10:18 AM by sumanthreddybandi

    Wildfly Equivalent of JNDI NamingService for remote EJB call

    sumanthreddybandi

      Hi,

       

      What is the widlfly equivalent of "org.jboss.naming.NamingService" in jboss/server/all/conf/jboss-service.xml

       

      <mbean code="org.jboss.naming.NamingService"  name="jboss:service=Naming" xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">

            <attribute name="CallByValue">false</attribute>

            <attribute name="Port">abcd</attribute>

            <attribute name="BindAddress">${jboss.bind.address}</attribute>

            <attribute name="RmiPort">efgh</attribute>

            <attribute name="RmiBindAddress">${jboss.bind.address}</attribute>

            <depends optional-attribute-name="LookupPool" proxy-type="attribute">jboss.system:service=ThreadPool</depends>

            <depends optional-attribute-name="Naming"  proxy-type="attribute">jboss:service=NamingBeanImpl</depends>

      </mbean>

       

      Getting "Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server xx.xx.xx.xx:zzzz" when invoking EJB object like below

      Context context = new InitialContext(properties);

      BindDB beanRemote = (BindDB) context.lookup("jndi/binddbejb");

       

      Thanks,

      Sumanth.