• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Difference between Stateful session bean and Entity Bean??

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Andres,
Thanks for ur suggestion that MasterEjbII book is really good book.
Thanks
Bikash
reply
    Bookmark Topic Watch Topic
  • New Topic