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 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. 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 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. 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. 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. 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 Difference between javaBeans and Enterprise JavaBeans? http://www.allinterview.com/showanswers/6681.html 1. JavaBeans may be visible or nonvisible at runtime.For example, the visual GUI component may be a button,list box,graphic or a chart. An EJB is a nonvisual ,remote object. 2. JavaBeans are intended to be local to a single process and are p 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 difference between stateless and stateful sessions? http://www.allinterview.com/showanswers/936.html Stateless session Bean will not maintain the conversation state between the requests. Each request will be independent. It does not support Activation and Passivation. Where as Stateless Session Bean, it maintains the conversation state be 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. 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) Life cycle methods in stateful session beans? http://www.allinterview.com/showanswers/6683.html ejbCreate() setSessionContext() ejbActivate() ejbPassivate() ejbRemove() afterBegin() beforeCompletion() afterCompletion(boolean commit) Explain the difference between, Java Class and Bean? http://www.allinterview.com/showanswers/2503.html A Java class is meant to carry out the different database operations like retrtieveing data, inserting data and updating data. The EJB has the business logic within it. the EJB decides what the business requires and carries out different tran what are main features in EJB? http://www.allinterview.com/showanswers/902.html 1.EJB architecture is inherently transactional,distributed,portable,multitired secure. 2.EJB components are serverside components written entirely in the java. 3.EJB components contain business logic only no system level programming. 4.System l