可在 WebLogic 部署描述符中指定 EJB 在全局 JNDI 树中的 JNDI 名称。 此规则检测 weblogic-ejb-jar.xml 中 <jndi-name> 元素的存在。
weblogic-ejb-jar.xml<weblogic-ejb-jar> <weblogic-enterprise-bean> <ejb-name>MyBean</ejb-name> <jndi-name>/mybean</jndi-name> ... </weblogic-enterprise-bean> </weblogic-ejb-jar> |
在源扫描程序中,快速修订会将 EJB JNDI 名称从 weblogic-ejb-jar.xml 迁移至 WebSphere Traditional 或 Liberty 绑定文件。 或者,可以在 server.xml 中设置 Liberty 元素。