Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the default JNDI name of an EJB in Websphere Application Server 7 (WAS)?

In the Administration COnsole of WAS 7, on the Applications > Application Types > WebSphere enterprise applications > application > EJB JNDI names section, I have a table with four columns :

  • EJB Module (e.g. ProjectEJB.jar)
  • EJB (e.g. BeanBO )
  • URI (e.g. ProjectEJB.jar, META-INF/ejb-jar.xml
  • Target resource JNDI Name (with empty fields)

Something like this :

enter image description here

What's the jndi name of my LogWriter bean ?

like image 327
Daniel Flores Avatar asked May 30 '14 22:05

Daniel Flores


People also ask

What is JNDI in WebSphere application server?

WebSphere Application Server name servers are an implementation of the CORBA CosNaming interface. The product provides a Java Naming and Directory Interface (JNDI) implementation which you can use to access CosNaming name servers through the JNDI interface.

Where is JNDI name in WebSphere?

To view this administrative console page, click Applications > Application Types > WebSphere enterprise applications > application > EJB JNDI names. Note: If any value is modified on this page, all of the metadata files related to the application are refreshed in the configuration repository.

What is a JNDI name?

A JNDI name is a user-friendly name for an object. These names are bound to their objects by the naming and directory service that is provided by a J2SE server. Because J2SE components access this service through the JNDI API, an object's user-friendly name is its JNDI name.

What is the use of IBM EJB jar BND XMI?

The ibm-ejb-jar-bnd. xml file is used for EJB 3.0 and later modules that run on the product, whereas the ibm-ejb-jar. bnd. xmi file is used for pre-EJB 3.0 modules and for web modules.


1 Answers

Below you have table with default names. Each bean gets short and long form. You can override default using ibm-ejb-jar-bnd.xml file or during installation via console. During module startup bindings will be visible in SysyemOut.log

You can read about default bindings here: 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>
like image 194
Gas Avatar answered Oct 06 '22 01:10

Gas