> Are there any real world examples of stateful session beans being used?
> Most of the design patterns I've seen concerning EJBs say to use
> stateless session beans wherever possible.  Well, given that the state
> in a stateful session bean must be regarded as totally transient anyhow,
> it seems like it's *always* possible to use stateless session beans
> instead.  Are stateful session beans the black sheep of the EJB family?

I am partial to stateless sessions, but I know plenty of otherwise normal
people who strongly prefer the programming model implied by stateful session
beans, often out of habit or for aesthetic reasons.

> Also, can someone explain the rationale to me for why a session bean is
> designated as stateless or stateful only in the deployment descriptor?
> Surely there are enough semantic differences between the two that the
> decision to be stateful or stateless does not belong at deployment time!

You think that's bad, what about transaction settings?  At least with
stateless/stateful, the bugs caused by incorrect deployment would be obvious
very quickly. ;-)

Stuart Halloway
DevelopMentor
http://www.develop.com/hp/halloway

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to