Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB

 
srivijaya
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
Can u please clear me
when would we use Entity beans?
when would we use Stateless Session beans?
when would we use Stateful Session beans?
when would we use Message-driven beans?
Regards...
Vijaya.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a nutshell...
  • Entity beans - for representing persistent information
  • Stateless session beans - for representing business processing/logic
  • Stateful session beans - for representing business logic where state is required to be maintained over a longer period of time (longer than a single method invocation)
  • Message-driven beans - as an aynchronous interface (via JMS) to functionality contained within stateless session beans, or to provide a messaging interface for your app


  • HTH
    Simon
    [ November 06, 2002: Message edited by: Simon Brown ]
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic