Google News
logo
EJB - Interview Questions
Explain @javax.ejb.EJB annotation.?
@javax.ejb.EJB annotation is used to specify or inject a dependency as ejb instance into another ejb. Following are its attributes :

name : Used to specify name which will be used to locate the referenced bean in environment.
beanInterface : Used to specify the interface type of the referenced bean.
beanName : Used to provide name of the referenced bean.
mappedName : Used to specify the JNDI name of the referenced bean.
description : Used to provide description of the referenced bean.
Advertisement