Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11610

In jolokia-access.xml, allowing a remote access using FQDN doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.6-CR3
    • fuse-7.3.1
    • Hawtio
    • None
    • % %
    • ?

      In order to get a remote client access to hawtio when <host> is using a FQDN in jolokia-access.xml, we manage to access Hawtio console remotely but can see only Connect tab and not getting others tab like JMX,

       
      <remote>
          <host>myclient.mycompany.com</host>
        </remote> 
      

      It only works when it is an IP address or an IP range.

      Undertow by default doesn't enable the reverse DNS lookup so we need to enable it by

      setting up PeerNameResolvingHandler as follows:

       
          @Bean
          public EmbeddedServletContainerFactory customizer() {
              UndertowEmbeddedServletContainerFactory factory = new UndertowEmbeddedServletContainerFactory();
              factory.addDeploymentInfoCustomizers(deploymentInfo -> {
                  deploymentInfo.addInitialHandlerChainWrapper(PeerNameResolvingHandler::new);
              });
              return factory;
          }
      

              yfang@redhat.com Freeman(Yue) Fang
              chardahe@redhat.com Chandrakant Hardahe (Inactive)
              Juri Solovjov Juri Solovjov
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: