이 규칙은 res-sharing-scope 요소가 누락된 WEB-INF/web.xml 파일에 있는 resource-ref 요소를 플래그 지정합니다. 기본적으로 Apache Tomcat 서버에서는 자원 공유 범위가 Shareable로 설정됩니다. Java EE에서는 자원 공유 범위가 선택적 속성으로 정의됩니다. 소스 스캐너에서 이 규칙에 대한 빠른 수정사항을 사용할 수 있습니다. WebSphere traditional 및 Liberty에서 Tomcat의 경우와 동일한 공유 가능 범위를 가져오기 위해 빠른 수정사항을 사용할 수 있습니다.
res-sharing-scope 요소가 아직 설정되지 않은 경우에는 빠른 수정사항이 이 요소를 추가하고 연결을 Shareable로 정의합니다.
다음은 플래그 지정되는 자원 참조의 예제입니다.|
<resource-ref> <description> Example Database</description> <res-ref-name>jdbc/exampleDB</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> |
|
<resource-ref> <description> Example Database</description> <res-ref-name>jdbc/exampleDB</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> |
WebSphere Application Server에서 공유 자원 연결에 관한 자세한 정보는 공유 불가능 및 공유 가능한 연결을 참조하십시오.