什么是Websphere Application Server 7(WAS)中EJB的默认JNDI名称?

Dan*_*res 7 websphere jndi java-ee websphere-7

在WAS 7的Administration COnsole中,在Applications> Application Types> WebSphere enterprise applications> application> EJB JNDI names部分中,我有一个包含四列的表:

  • EJB模块(例如ProjectEJB.jar)
  • EJB(例如BeanBO)
  • URI(例如ProjectEJB.jar,META-INF/ejb-jar.xml
  • 目标资源JNDI名称(带空字段)

像这样的东西:

在此输入图像描述

我的LogWriter bean的jndi名称是什么?

Gas*_*Gas 7

下面是包含默认名称的表.每个豆都是短而长的形式.您可以使用ibm-ejb-jar-bnd.xml文件或在通过控制台安装期间覆盖默认值.在模块启动期间,绑定将在SysyemOut.log中可见

您可以在此处阅读有关默认绑定的信息:http: //pic.dhe.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.express.iseries.doc/info/iseriesexp/ae/cejb_bindingsejbfp.html

Description                              Binding pattern
Short form local interfaces and homes    ejblocal:<package.qualified.interface>
Short form remote interfaces and homes   <package.qualified.interface>
Long form local interfaces and homes     ejblocal:<component-id>#<package.qualified.interface>
Long form remote interfaces and homes    ejb/<component-id>#<package.qualified.interface>

The component-id defaults to <application-name>/<module-jar-name>/<ejb-name>
Run Code Online (Sandbox Code Playgroud)