File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes entity bean  vs  session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "entity bean  vs  session bean" Watch "entity bean  vs  session bean" New topic

entity bean vs session bean

reshu goyal

Joined: Jan 25, 2005
Posts: 10
can anybody tell me what is difference betweeb
entity bean and session bean

we are using beans to write business logic.
rehans oberoi
Ranch Hand

Joined: Dec 06, 2005
Posts: 174
hi reshu

it provide object representaion of data in the database.
they can allow shared access from multiple user.

SESSION BEAN: represent a process excecutiong on the behalf of a single object.even though it does not present directly shared data .
it can access or update the data in the database . session bean can
be ststeful or stateless. a session beans retains the conversational
state of the client acrosss multiple method calls. stateless session
bean are dedicated to the client only for the duration of single method call

and about

message driven bean: are asynchronously invokes when a client
message arrives. client never call them directly. so they do not have any
home or component interface

Praveena Jayanthi

Joined: Dec 30, 2005
Posts: 10
I like the difference presented in HFEJB..

Entity Bean "IS" something.
Session Bean "DOES" something.

Think of ENtity Bean as a NOUN
and Session Bean as a VERB.
I agree. Here's the link:
subject: entity bean vs session bean
It's not a secret anymore!