The client always need to track/identify the session,
not always store the session state.
Then you have the responsibility on the storing the
session state. There is a point in storing this
session state in the business components (ie.
statefull session beans, they are after all designed
for this use).
I often use the session-state programming-model given
to me for free by JSP. It stores the state in the
HttpSession which (almost always) are stored in the
web-server. It makes no difference if the client is
WAP, Web, or anything else since the state never
really leaves the server. To my knowledge though, WAP
1.1 has no session-awareness builtin... (request for
comment) So there, the problem is solved... :-)

--- Marcus Ahnve <[EMAIL PROTECTED]>
skrev:
> > > AFAIK it is not a good design to
> > > make the clients session aware --- and thats
> precisely why stateful
> > > session
> > > beans came into being.
> > >
> >         [Randy Stafford]  What do you mean by
> "make the clients session
> > aware"?
>
> I don't know if this is Ana's view, but to me it
> means that the client
> of the EJB has to know that there is a session
> involved and store their
> own state.
>
> *snip*
>
> >  It
> > then becomes a design choice where to store it.
> Storing it in stateful
> > session beans may limit scalability, as you
> suspect.  What is wrong with
> > storing it in HttpSession state?
>
> Because then every client has to store their own
> session instead of just
> being responsible of displaying things to the users.
> If you add WAP to
> your site for example, that's another client who
> needs to store the
> session. Sure, it might be necessary due to whatever
> performance/scalablility reasons, but I would prefer
> the stateful bean
> instead.
>
> Regards
>
> /Marcus
>
> Marcus Ahnve
> Sun Java Center
> Sweden
>
>
===========================================================================
> 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".
>
>

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

===========================================================================
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