joh*_*ohn 7 websphere websphere-6.1 websphere-7
在Websphere 6 ibm-web-bnd.xmi文件中我有
<?xml version="1.0" encoding="UTF-8"?>
<webappbnd:WebAppBinding xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:webappbnd="webappbnd.xmi"
xmi:id="WebAppBinding_1294064796872"
virtualHostName="default_host">
<webapp href="WEB-INF/web.xml#WebApp_ID"/>
<resRefBindings xmi:id="ResourceRefBinding_1294083767913" jndiName="jdbc/ABC_DEFG">
<bindingResourceRef href="WEB-INF/web.xml#ResourceRef_1294083767913"/>
</resRefBindings>
</webappbnd:WebAppBinding>
Run Code Online (Sandbox Code Playgroud)
我想升级到Websphere 7并使用默认的ibm-web-bnd.XML文件,但我不知道如何更新它...有人可以提供一些想法.谢谢
<?xml version="1.0" encoding="UTF-8"?>
<web-bnd xmlns="http://websphere.ibm.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-bnd_1_0.xsd"
version="1.0">
<virtual-host name="default_host" />
<!--WHAT TO PUT HERE FOR jdbc/ABC_DEFG -->
</web-bnd>
Run Code Online (Sandbox Code Playgroud)
Bre*_*ail 11
您必须在web.xml中找到相应的ResourceRef_1294083767913节.它应该采用以下格式:
<resource-ref>
<res-ref-name>jdbc/myResRef</res-ref-name>
...
</resource-ref>
Run Code Online (Sandbox Code Playgroud)
在这种情况下,您可以将此元素添加到ibm-web-bnd.xml:
<resource-ref name="jdbc/myResRef" binding-name="jdbc/ABC_DEFG"/>
Run Code Online (Sandbox Code Playgroud)
该信息中心的话题,EJB 3.0应用程序绑定概述,实际上解释了IBM-ejb-jar.xml中,IBM的web-bnd.xml和ibm-应用客户bnd.xml的XML绑定格式.
| 归档时间: |
|
| 查看次数: |
28381 次 |
| 最近记录: |