• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

entity bean vs session bean

 
reshu goyal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi reshu


ENTITY BEANS:
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
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic