5.2.2. 원격 자카르타 엔터프라이즈 빈 구성 파일

JBoss EAP에는 Elytron 보안 프레임워크가 포함되어 있습니다. 클라이언트 애플리케이션 클래스 경로의 META-INF/ 디렉터리에 있는 The wildfly- config.xml 파일은 Elytron 보안 프레임워크 및 Jakarta Enterprise Beans 클라이언트 구성에 대한 광범위한 인증 및 권한 부여 옵션을 허용합니다.

<configuration>
   <authentication-client xmlns="urn:elytron:client:1.2">
      <authentication-rules>
         <rule use-configuration="default" />
      </authentication-rules>
      <authentication-configurations>
         <configuration name="default">
            <sasl-mechanism-selector selector="DIGEST-MD5" />
            <set-user-name name="admin" />
            <credentials>
               <clear-password password="password123!" />
            </credentials>
         </configuration>
      </authentication-configurations>
   </authentication-client>
   <jboss-ejb-client xmlns="urn:jboss:wildfly-client-ejb:3.0">
      <connections>
         <connection uri="remote+http://127.0.0.1:8080" />
      </connections>
   </jboss-ejb-client>
</configuration>

초기 컨텍스트에서 PROVIDER_URL,SECURITY_PRINCIPALSECURITY_CREDENTIALS 매개변수를 포함하는 대신 <connection-uri> 및 < authentication-client> 요소를 각각 wildfly-config.xml 파일에 사용하여 연결 URI와 보안 설정을 구성할 수 있습니다.