【问题标题】:Websphere 6.1 to 7 how to update ibm-web-bnd.xmi to ibm-web-bnd.xmlWebsphere 6.1 到 7 如何将 ibm-web-bnd.xmi 更新为 ibm-web-bnd.xml
【发布时间】:2011-06-05 11:04:34
【问题描述】:

在 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>

我想升级到 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>

【问题讨论】:

    标签: websphere websphere-6.1 websphere-7


    【解决方案1】:

    您必须在 web.xml 中找到相应的 ResourceRef_1294​​083767913 节。它应该是这种格式:

    <resource-ref>
      <res-ref-name>jdbc/myResRef</res-ref-name>
      ...
    </resource-ref>
    

    在这种情况下,您可以将此元素添加到 ibm-web-bnd.xml:

    <resource-ref name="jdbc/myResRef" binding-name="jdbc/ABC_DEFG"/>
    

    InfoCenter 主题 EJB 3.0 application bindings overview 实际上解释了 ibm-ejb-jar.xml、ibm-web-bnd.xml 和 ibm-application-client-bnd.xml 的 XML 绑定格式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-23
      • 2020-07-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多