What is the difference between session and entity beans? When should I use one or the other?
Submitted by: AdministratorAn 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
Submitted by: Administrator
Read Online Java EJB Programming Job Interview Questions And Answers
Top Java EJB Programming Questions
☺ | What happens if remove( ) is never invoked on a session bean? |
☺ | Is it possible to stop the execution of a method before completion in a SessionBean? |
☺ | What is EJB? |
☺ | What is session Facade in EJB? |
☺ | Can the primary key in the entity bean be a Java primitive type such as int? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |