users@glassfish.java.net

RE: how to use sfsb in web tier application

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Tue, 4 May 2010 18:14:04 -0400

start here for an understanding of SSB
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts3.html

an easy to deploy Shopping Cart Bean is available at
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets3.html

Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Tue, 4 May 2010 13:07:59 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: how to use sfsb in web tier application
>
> I have problem understanding stateful session beans.
>
> The thing that bothers me it that acts like a singleton rather than unique per client session. So that means if I have many web browsers open, it will always continue with state where it left off with "previous" session (I also call it session sharing). There is only one session.
>
> My question is how should I create beans in a web tier for unique clients (dynamic web project). For now I created beans within servlets as ejb annotated parameter in an EAR. Also is my thinking correct on how stateful are being used, I've seen the shopping cart idea, but I can't make it work like that.
> [Message sent by forum member 'snovak7']
>
> http://forums.java.net/jive/thread.jspa?messageID=403483
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
                                               
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2