Pregunta

En Websphere 6 IBM-web-bnd.xmi archivo que tengo

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

Me gustaría actualizar a la Websphere 7 y utilizar el archivo ibm-web-bnd.XML defecto, pero no estoy seguro de cómo actualizar ... que alguien podría proporcionar algunas ideas. GRACIAS

    <?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>
¿Fue útil?

Solución

Vas a tener que encontrar la correspondiente ResourceRef_1294083767913 estrofa en web.xml. Debe ser en este formato:

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

En ese caso, deberá añadir este elemento a IBM en la web-bnd.xml:

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

El Centro de información del tema, EJB 3.0 enlaces de aplicación visión general , en realidad explica el formato XML para fijaciones ibm-ejb-jar.xml, ibm-web-bnd.xml, e IBM-aplicación-cliente- bnd.xml.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top