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.

11. What are the different methods <strong>of</strong> Entity Bean<br />

An entity bean consists <strong>of</strong> 4 type <strong>of</strong> methods: create methods, finder<br />

methods, remove methods <strong>and</strong> home methods.<br />

12. What is the difference between EJB <strong>and</strong> Java beans<br />

EJB is a specification for J2EE server, not a product; Java beans may be a<br />

graphical component in IDE.<br />

13. What is EJB role in J2EE<br />

EJB technology is the core <strong>of</strong> J2EE. It enables developers to write reusable <strong>and</strong><br />

portable server-side business logic for the J2EE platform.<br />

14. What are the key benefits <strong>of</strong> the EJB technology<br />

1. Rapid application development<br />

2. Broad industry adoption<br />

3. Application portability<br />

4. Protection <strong>of</strong> IT investment<br />

15. How many enterprise beans<br />

There are three kinds <strong>of</strong> enterprise beans:<br />

1. session beans,<br />

2. entity beans, <strong>and</strong><br />

3. Message-driven beans.<br />

16. What is message-driven bean<br />

A message-driven bean combines features <strong>of</strong> a session bean <strong>and</strong> a Java<br />

Message Service (JMS) message listener, allowing a business component to<br />

receive JMS. A message-driven bean enables asynchronous clients to access<br />

the business logic in the EJB tier.<br />

17. What is the difference between session <strong>and</strong> entity beans<br />

An entity bean represents persistent global data from the database; a session<br />

bean represents transient user-specific data that will die when the user<br />

disconnects (ends his session). Generally, the session beans implement<br />

business methods (e.g. Bank.transferFunds) that call entity beans (e.g.<br />

Account.deposit, Account.withdraw)<br />

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

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

Saved successfully!

Ooh no, something went wrong!