File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB" Watch "EJB" New topic
Author

EJB

srivijaya
Greenhorn

Joined: Nov 02, 2002
Posts: 12
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

Joined: May 10, 2000
Posts: 1913
    
    6
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 ]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: EJB