Free Jobs

click here

click here
EJB Interview Questions(Basic)

For more advanced and tough EJB Interview Questions Click Here

Q1. What is Enterprise JavaBeans(EJB)?
EJB stands for Enterprise JavaBeans and it is a J2EE component that defines a component architecture for multi-tier client/server systems. (EJB) components (enterprise beans) are business components that run on the server.

Q2. What is the difference between EJB and Java beans?
Enterprise java beans is a specification for J2EE server while Java beans can be a graphical component in IDE.

Q3. Explain the main features of EJB technology?
a)EJB components are server side components written entirely in the Java.
b)EJB components has only business logic .
c)EJB components are portable across any EJB server.
d)EJB architecture is protocol independent so any protocol like JRMP, HTTP, DCOM, etc can be used.

Q4. Explain the main advantages of using the EJB technology?
a)Using EJB technology Rapid application development is possible.
b)EJB technology is widely adopted by industry.
c)Application portability is more in case of EJB.

Q5. Enumerate the type of enterprise beans?
a)Entity bean
b)Stateless session bean
c)Stateful session bean
d)Message-driven bean

Q6. What is Entity Bean?
The entity bean is a type of enterprise beans used to represent data in the database. It provides an object-oriented interface to data.There are two kinds of entity beans: container managed persistence (CMP) and bean managed persistence (BMP).

Q7. What is Session Bean?
Session bean is a non persistent object which implements some business logic. These type of beans are used to manage the interactions of entity and other session beans,access resources etc. There are two types of session bean: stateful and stateless.

Q8. Explain the architecture of EJB?
The architecture of EJB has following class:
a)An interface for Interacting with client.
b)An Interface for creating Objects.
c)A bean object which actually carry out the business logic operation.
d)A deployment descriptor which contains cofig information.

Q9. What are transaction isolation levels in EJB?
Following is the transaction Isolation levels in EJB: a) Transaction_read_uncommitted
b) Transaction_read_committed
c) Transaction_repeatable_read
d) Transaction_serializable

Q10. What is session Facade in context of EJB?
Session Facade is a design pattern to access the Entity bean using local interface. The advantage of using it is to increases the performance over the network.

For more advanced and tough EJB Interview Questions Click Here Copyright © 2009-2011 | All Rights Reserved
All content of this website is protected by copyright laws and should not be reproduced in any form or by any means without written permission
(Best viewed in IE 8.0+ or Firefox 3.0+ at resolution of 1024 * 768 or higher)