Java Stream Question and Answers

17. What is an Entity Bean?
 
  • An Entity Bean is one of the two fundamentally different types of Enterprise Java Beans, which models business concepts that can be expressed as nouns.
  • For example, an Entity Bean might represent a customer, a piece of equipment, an item in inventory, or even a place.
  • In other words, Entity Beans model real world objects are usually persistent in some kind of database.
  • An Entity Bean is an independent client and has a long life. It needs to maintain an identity for each specific instance. The other type of EJB is a Session Bean.
 
Your Name Your Email-ID
Your Answer
18. What is a Session Bean?
 
  • A Session Bean is an extension of the client application and is responsible for managing processes or tasks.
  • A Session Bean does not represent something in a database. Unlike an Entity Bean, it has no persistent state.
  • It exists to serve a client's request and, basically, just disappears after that.
 
Your Name Your Email-ID
Your Answer
19. What is a three-tier Architecture in distributed object technology?
  A three-tier Architecture consists of
  • The presentation logic that resides on the client (first tier)
  • The business logic on the middle tier (second tier), and
  • Other resources, such as the database, that reside on the back end (third tier)
 
Your Name Your Email-ID
Your Answer
20. What is the difference between an Entity Bean and a Session Bean?
  An Entity Bean is client independent and has a long life. It needs to maintain an identity for each specific instance. On the other hand, a Session Bean is client dependent and exists to serve a single client request and, basically, just disappears after that. The following table shows the interfaces and methods in EJB package-javax.ejb.*.
 
Your Name Your Email-ID
Your Answer
12345678910 Page 5 of 10