31.01.2015 Views

QB - Jayaram College of Engineering and Technology

QB - Jayaram College of Engineering and Technology

QB - Jayaram College of Engineering and Technology

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Unit III<br />

1. What is Session Bean<br />

Session bean represents a single client inside the J2EE server. To access the<br />

application deployed in the server the client invokes methods on the session<br />

bean. The session bean performs the task shielding the client from the<br />

complexity <strong>of</strong> the business logic.<br />

Session bean components implement the javax.ejb.SessionBean interface.<br />

Session beans can act as agents modeling workflow or provide access to<br />

special transient business services. Session beans do not normally represent<br />

persistent business concepts. A session bean corresponds to a client server<br />

session. The session bean is created when a client requests some query on<br />

the database <strong>and</strong> exists as long as the client server session exists.<br />

2. What are different types <strong>of</strong> session bean <br />

There are two types <strong>of</strong> session beans, namely: Stateful <strong>and</strong> Stateless.<br />

3. What is an Entity Bean<br />

An entity bean represents a business object in a persistent storage<br />

mechanism. An entity bean typically represents a table in a relational<br />

database <strong>and</strong> each instance represents a row in the table. Entity bean differs<br />

from session bean by: persistence, shared access, relationship <strong>and</strong> primary<br />

key.<br />

4. What are different types <strong>of</strong> entity beans<br />

There are two types <strong>of</strong> entity beans available. Container Managed<br />

Persistence (CMP) , Bean managed persistence (BMP).<br />

5. What is abstract schema <br />

In order to generate the data access calls, the container needs information<br />

that you provide in the entity bean's abstract schema. It is a part <strong>of</strong> Deployment<br />

Descriptor. It is used to define the bean's persistent fields <strong>and</strong> relation ships.<br />

Department <strong>of</strong> IT, JCET, Trichy. Page 10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!