A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
EJB and other Java EE Technologies
Joined: Nov 02, 2002
Nov 04, 2002 22:43:00
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?
sharp shooter, and author
Joined: May 10, 2000
Nov 06, 2002 03:57:00
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
[ November 06, 2002: Message edited by: Simon Brown ]
I agree. Here's the link:
DAO with statefull session bean
a few questions
HttpSession vs Session Beans
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015