Interviewer And Interviewee Guide

Java EJB Programming Interview Question:

What is the difference between session and entity beans? When should I use one or the other?

Submitted by: Administrator
An entity bean represents persistent global data from the database; a session bean represents transient user-specific data that will die when the user disconnects (ends his session). Generally, the session beans implement business methods (e.g. Bank.transferFunds) that call entity beans (e.g. Account.deposit, Account.withdraw)
Submitted by: Administrator

Read Online Java EJB Programming Job Interview Questions And Answers
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.