Utilizza i bind WebSphere per definire i nomi riferimento risorsa

I descrittori di distribuzione specifici di WebLogic, weblogic.xml o weblogic-ejb-jar.xml, potrebbero contenere riferimenti risorsa. Tali riferimenti associano il riferimento EJB al nome JNDI, come illustrato nell'esempio. Questa regola rileva i riferimenti risorsa. La correzione automatica migrerĂ  i riferimenti al file tradizionale e ai file di binding di WebSphere Liberty e ai file di binding.

Esempio di costrutti weblogic.xml
< app - web - weblog>
< span class="indent"> < /span> < span class="indent"> < /span> < descrittore di riferimento>
< span class="indent"> < /span> < span class="indent"> < /span> < span class="indent"> < /span> < span class="indent"> < /span> < descrizione-risorsa>
<res-ref-name>ejb /myBean</res-ref-name>
<jndi-name>ejb /myBean</jndi-name>
</resource-description>
</reference-descriptor>


Il nome JNDI viene salvato nel file di bind, ed il riferimento viene correlato alla voce nel file web.xml.

Esempio di costrutti weblogic-ejb-jar.xml
< ejb - weblog>
< span class="indent"> < /span> < span class="indent"> < /span> < weblogic - enterprise - bean>
< span class="indent"> < /span> < span class="indent"> < /span> < span class="indent"> < /span> < span class="indent"> < /span> < reference-descriptor>
< span class="indent"> < /span> < span class="indent"> < /span> < span class="indent"> < /span> < span class="indent"> < /span> < span class="indent"> < /span> < span class="indent"> < /span> < resource-description>
<res-ref-name>ejb /myBean</res-ref-name>
<jndi-name>ejb /myBean</jndi-name>
</resource-description>