Websphere 6.1 到 7 如何将 ibm-web-bnd.xmi 更新为 ibm-web-bnd.xml
在 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>
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>
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须在 web.xml 中找到相应的 ResourceRef_1294083767913 节。它应该采用以下格式:
在这种情况下,您可以将此元素添加到 ibm-web-bnd.xml:
InfoCenter 主题,EJB 3.0 应用程序绑定概述,实际上解释了 ibm 的 XML 绑定格式-ejb-jar.xml、ibm-web-bnd.xml 和 ibm-application-client-bnd.xml。
You'll have to find the corresponding ResourceRef_1294083767913 stanza in web.xml. It should be in this format:
In that case, you would add this element to ibm-web-bnd.xml:
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.