users@glassfish.java.net

Re: How to take the same Stateful Bean from Remote RMI-IIOP and Local

From: Miroslav Nachev <miro_at_space-comm.com>
Date: Fri, 23 May 2008 17:23:01 +0300

OK. The shopping cart is very good example for Web/HTML based application
where you have another extra HTTP layer. Try to get the same shopping cart
from some Session bean instead from HTTP layer. This is not possible.


Regards,
Miro.

On Fri, May 23, 2008 at 5:19 PM, <glassfish_at_javadesktop.org> wrote:

> A Singleton is used for shared state between multiple bean instances or
> bean components. A Stateful session bean is intended to model a
> conversation with a single client. A shopping cart is the canonical example
> of a stateful session bean use case. If you went into a grocery store, you
> wouldn't want many customers using the same shopping cart.
>
> The shared vs. single-client distinction is fundamental to the component
> semantics. It wouldn't make sense to simply change the stateful session
> bean model to provide both kinds of behavior.
> [Message sent by forum member 'ksak' (ksak)]
>
> http://forums.java.net/jive/thread.jspa?messageID=276312
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>