WebLogic 고유의 배치 디스크립터(weblogic.xml 또는 weblogic-ejb-jar.xml)에는 자원 환경 참조 요소가 있습니다.
이러한 요소는 자원 환경 참조를 JNDI 이름에 맵핑합니다.
이 규칙은 WebLogic 자원 환경 참조 JNDI 이름을 발견합니다.
자동화된 수정은 JNDI 이름을 WebSphere Application Server 바인딩 파일로 마이그레이션됩니다.
weblogic.xml 구성 예제는 다음과 같습니다.
< weblogic-web-app>
...
< span class= "indent2"> < /span> < b> < resource-env-description> < /b>
<res-env-ref-name>jms/myQueue</res-env-ref-name>
<jndi-name>jndi/myQueue</jndi-name>
</resource-env-description>
...
</weblogic-web-app>
해당 자원 환경 참조가 web.xml 파일에서 사용 가능해야 합니다.
다음 예제의 경우에는 web.xml 파일에 jms/myQueue로 이름이 지정된 resource-env-ref가 있어야 합니다.
<web-app>
...
< span class= "indent2"> < /span> < resource-env-ref>
<resource-env-ref-name>jms/myQueue</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
...
</web-app>
자동화된 수정은 JNDI 이름을 < href="../common/BindingsExtensionsFiles.html">바인딩 파일에 저장됩니다, 그리고 참조는 <resource-env-ref> 요소와 연관되어 있습니다 web.xml 파일에 저장됩니다.
마찬가지로 weblogic-ejb-jar.xml 구성의 경우에도 <resource-env-description> 요소가 지정된 EJB의 <resource-env-ref> 요소와 일치할 때, JNDI 이름이
WebSphere traditional 또는 Liberty 바인딩에 저장됩니다.
< weblogic-ejb-jar>
< span class= "indent2"> < /span> < weblogic-enterprise-bean>
<ejb-name>MyBean</ejb-name>
...
< span class= "indent2"> < /span> < reference-descriptor>
...
< span class= "indent2"> < /span> < span class="indent2"> < /span> < resource-env-description>
<res-env-ref-name>jms/myQueue</res-env-ref-name>
<jndi-name>jndi/myQueue</jndi-name>
< /resource - env-description
</reference-descriptor>
...
</weblogic-enterprise-bean>
</weblogic-ejb-jar>