• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between Stateful session bean and Entity Bean??

 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all friends,
Can any one please explain me what is the differences between Stateful session bean and Entity Bean.I have faced this question in one interview.
Regards
Bikash
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
uuhhhh..... I'd say there's a huge difference between these types of beans . Session beans (stateful, stateless) represent "actions" that your application requires to execute.
for example, in the well-known banking application, you will have session beans that make money withdraw, transfer, etc. so clients interact with the session beans, for example.
Entity beans are things that you want your application to persist. In our example, an account can be an entity bean. Person might be an entity bean as well.. most people say that entity beans are nouns whereas session beans are verbs.
This is a very basic explanation, but at least it will give you a big overview of this topic. I highly recommend you to read this book, which its PDF is completely free. It's a great book BTW.
hope this helps
[ June 29, 2003: Message edited by: Andres Gonzalez ]
 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andres,
Thanks for ur suggestion that MasterEjbII book is really good book.
Thanks
Bikash
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!