Top EJB Interview Questions :: ALLInterview.com http://www.allinterview.com Top EJB Interview Questions en-us what s the difference b/w EJB 2.0 and EJB 3.0 technically http://www.allinterview.com/showanswers/32229.html EJB 2.0 are very complex, difficult to learn/use. Uses methods like "ejbPassivate", "ejbActivate", "ejbLoad", "ejbStore". Needs a deployment descriptor. In EJB 3.0 methods like "ejbPassivate&qu difference b/w the hybernate and entity bean http://www.allinterview.com/showanswers/36819.html In simple way, Entity Bean has a overhead of handling RDBMS, For Handling this Hybernate comes into picture. what is an ejb object? http://www.allinterview.com/showanswers/36145.html Ejb object is a server-side object,and it conatins business methods,that is why we need to call ejb object as a business component. whatis the diff between ejb and servlet/jsp http://www.allinterview.com/showanswers/33048.html Ejb is a EJBCntainer. servlet and jsp are webcontainer. Ejb is business logic . servlet and jsp are presentation logic. Driver manager is a class/interface. http://www.allinterview.com/showanswers/36146.html The JDBC DriverManager is a clas....It loads the JDBC driver needed to access a particular data source, locates and logs on to the database and returns a Connection object. How can I call one EJB from inside of another EJB? http://www.allinterview.com/showanswers/28967.html EJBs can be clients of other EJBs. It just works. Use JNDI to locate the Home Interface of the other bean, then acquire an instance reference, and so forth. What is the purpose of JNDI? http://www.allinterview.com/showanswers/8604.html JNDI provides a platform-independent Java interface to naming and directory services, such as LDAP, NDS, and Active Directory. What Is EJB Clustering? Explain the Functionality? http://www.allinterview.com/showanswers/8662.html Clustering is the technique of grouping machines together to transparently provide enterprise services .IT provides scalability and high availability. how can u integrate ejb and hibernate? How can u call hibernateDAO http://www.allinterview.com/showanswers/36555.html hibernate used to perform OR(object relational) mapping.it is alternate to DAO . servlets--->ejbSEssionbean(to store businesslogic)--->ejb entity bean(to maintain persistence logic)here we use hibernate instead of entity bean. the above Life cycle methods in stateful session beans? http://www.allinterview.com/showanswers/6683.html ejbCreate() setSessionContext() ejbActivate() ejbPassivate() ejbRemove() afterBegin() beforeCompletion() afterCompletion(boolean commit) Can the primary key in the entity bean be a Java primitive type such http://www.allinterview.com/showanswers/28968.html The primary key can't be a primitive type--use the primitive wrapper classes, instead. For example, you can use java.lang.Integer as the primary key class, but not int (it has to be a class, not a primitive) what is ejb http://www.allinterview.com/showanswers/8712.html EJB is a distributed component which is used to develop the business applications.It is a technology that is based on J2EE platform. EJB is a java object that is implemented to the EJB specifications.EJB has some special features of addressin What is the perpose of EJBs? http://www.allinterview.com/showanswers/28053.html To develop scalable components. specially used in distributed computing. Can we write the Remote and Local Interfaces in one Bean. How do yo http://www.allinterview.com/showanswers/6852.html Local Interfaces can?t be accessed outside the world. Those interfaces can be accessed by the entity which are in the same EJB Container. Using which you can reduce the network traffic. What is the relationship between an EJB component, EJB container, and http://www.allinterview.com/showanswers/8606.html An EJB component is an enterprise bean that runs in a container. The container provides a platform-independent execution environment for the bean. Containers are hosted on EJB-compliant application servers. The vendor-specific application servers