Websphere 6.1 到 7 如何将 ibm-web-bnd.xmi 更新为 ibm-web-bnd.xml

标签 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>

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

最佳答案

您必须在 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"/>

信息中心主题,EJB 3.0 application bindings overview ,实际上解释了 ibm-ejb-jar.xml、ibm-web-bnd.xml 和 ibm-application-client-bnd.xml 的 XML 绑定(bind)格式。

关于Websphere 6.1 到 7 如何将 ibm-web-bnd.xmi 更新为 ibm-web-bnd.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4628915/

相关文章:

java - JMS - 将监听器添加到 MessageConsumer 时出错

java - Websphere 是否尊重守护进程线程?

java - WebSphere Commerce - ReLogonFormView/Session Expiration 如何工作?

linux - RHEL 5 上面向开发人员的 Websphere Application Server 6.1 控制台安装失败

websphere - 删除的配置文件显示在 IBM Websphere 的配置文件管理工具中

java - 将类文件直接添加到 WAS 7 中分解部署的 Ear 中的后果

java - 在 Websphere 上无法部署

java - 是否可以在没有 AdminOperations 的情况下使用 java AdminClient 访问 WebSphere 变量?

java - WAS 6.1 的 JPA 问题

java - websphere 网络部署 v8.5.5.0 在部署期间不扫描带注释的 Web 服务类