Websphere 6,1 à 7 comment mettre à jour ibm-web-bnd.xmi pour ibm-web-bnd.xml
-
08-10-2019 - |
Question
Dans Websphere 6 fichier ibm-Web-bnd.xmi je
<?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>
Je voudrais passer à la Websphere 7 et utiliser le fichier par défaut ibm-web-bnd.XML, mais je ne suis pas sûr de savoir comment mettre à jour ... Quelqu'un pourrait-il donner quelques idées. MERCI
<?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>
La solution
Vous devrez trouver la strophe ResourceRef_1294083767913 correspondante web.xml. Il devrait être dans ce format:
<resource-ref>
<res-ref-name>jdbc/myResRef</res-ref-name>
...
</resource-ref>
Dans ce cas, vous devez ajouter cet élément à ibm-web-bnd.xml:
<resource-ref name="jdbc/myResRef" binding-name="jdbc/ABC_DEFG"/>
Le sujet InfoCenter, Vue d'ensemble des liaisons d'application EJB 3.0 , explique en fait le format XML pour les liaisons de ibm-ejb-jar.xml, ibm-web-bnd.xml et ibm-application client- bnd.xml.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow