0 Replies Latest reply on Sep 17, 2012 8:05 AM by mreasy

    Deploy WAR to specific security-realm / interface

    mreasy

      Hi,

       

      Want to deploy a web-app (WAR), but only bind it to a specific security realm. Especially, I want it to bind to the ManagementRealm and its related interface as configured in host.xml, like e.g. the JBossAS-console does.

      Is there a way to configure it, maybe using jboss-web.xml?

       

      host.xml:

      <host name="master" xmlns="urn:jboss:domain:1.1">
      
          <management>
              <security-realms>
                  <security-realm name="ManagementRealm">          <<<<<----------- This is the realm I want to bind to
                      <authentication>
                          <properties path="mgmt-users.properties"
                              relative-to="jboss.domain.config.dir" />
                      </authentication>
                  </security-realm>
                  ...
              </security-realms>
              <management-interfaces>
                  <native-interface security-realm="ManagementRealm">
                      <socket interface="management" port="9999" />
                  </native-interface>
                  <http-interface security-realm="ManagementRealm">
                      <socket interface="management" port="9990" />
                  </http-interface>
              </management-interfaces>
          </management>
      
          <interfaces>
              <interface name="management">
                  <inet-address value="${jboss.bind.address.management:127.0.0.1}" /><<<<<----------- This is the interface I want to bind to
              </interface>
             ...
          </interfaces>