Websphere 6.1至7如何将ibm-web-bnd.xmi更新为ibm-web-bnd.xml [英] Websphere 6.1 to 7 how to update ibm-web-bnd.xmi to ibm-web-bnd.xml

查看:161
本文介绍了Websphere 6.1至7如何将ibm-web-bnd.xmi更新为ibm-web-bnd.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我拥有的Websphere 6 ibm-web-bnd.xmi文件中

In Websphere 6 ibm-web-bnd.xmi file I have

<?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文件,但是我不确定如何更新它……有人可以提供一些想法.谢谢

I would like to upgrade to the Websphere 7 and use the default ibm-web-bnd.XML file, but I am not sure how to update it...could someone provide some ideas. THANKS

    <?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节.格式应为:

You'll have to find the corresponding ResourceRef_1294083767913 stanza in web.xml. It should be in this format:

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

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

In that case, you would add this element to ibm-web-bnd.xml:

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

信息中心主题

The InfoCenter topic, EJB 3.0 application bindings overview, actually explains the XML bindings format for ibm-ejb-jar.xml, ibm-web-bnd.xml, and ibm-application-client-bnd.xml.

这篇关于Websphere 6.1至7如何将ibm-web-bnd.xmi更新为ibm-web-bnd.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆