1 Reply Latest reply on Sep 29, 2019 6:14 AM by Wolfgang Mayer

    WildFly 14 domain JMX remoting by

    John Daniels Newbie

      I have been trying to set up jmx remoting in WildFly 14 domain mode however I have not been able to connect.

       

      - I have set up a user in ApplicationRealm

      - I have set the remoting socket binding port for the full profile to 4447

      - I have set the full profile: /profile=full/subsystem=jmx/remoting-connector=jmx:add(use-management-endpoint=false)

       

      I run the domain.bat - b=localhost

       

      I try to use a tool like visualjvm to try and connect and I cannot see any connection

      service:jmx:remoting-jmx://localhost:4447

        • 1. Re: WildFly 14 domain JMX remoting by
          Wolfgang Mayer Master

          Apparently your parameters are not correct.
          You may look into the ejb-remote example of WildFly quickstart.

          in RemoteEJBClient.java there are following lines:

          final Hashtable<String, String> jndiProperties = new Hashtable<>();

          jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");

          if(Boolean.getBoolean(HTTP)) {

              //use HTTP based invocation. Each invocation will be a HTTP request

               jndiProperties.put(Context.PROVIDER_URL,"http://localhost:8080/wildfly-services");

             } else {

                //use HTTP upgrade, an initial upgrade requests is sent to upgrade to the remoting protocol

                jndiProperties.put(Context.PROVIDER_URL,"remote+http://localhost:8080");

              }

          final Context context = new InitialContext(jndiProperties);

          ...

          return (RemoteCalculator) context.lookup(...;