To me the optimal solution would be to store some hash or oid in the http
session then have a (cluster-replicated) cache containing the state that I
can rapidly index into in the app server layer. I think there are currently
tools that do this sort of thing anyway aren't there?
>From: Ian McCallion <[EMAIL PROTECTED]>
>Reply-To: Ian McCallion <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: EJB Session versus HttpSession
>Date: Mon, 30 Jul 2001 15:28:58 +0100
>
>John Bateman wrote:
> >
> > Hi
> >
> > I'm assuming when you say that information passed / stored in the
> > HttpSession will be passed up the wire you mean sent back and forth from
>the
> > App server.
>
>HTTPSession data goes up and down the wire between the client and the web
>server. It's a neat trick, because it absolves the web server from state
>management, but it should be used in moderation.
>
> > I, maybe due to my limited experience, can't see how using references to
>a
> > session bean on the client side can reduce network I/O in lieu of just
> > stuffing (temp)variables into the HTTPSession and processing them when
> > ready. If I process the 7 form 'wizard', with validatred data from the
> > forms, and then send it along to my session bean, doesn't this now
>create
> > only one big bulk update on the business side instead of 7 little
>updates?
> > (Refer MVC, Model 2 / Request dispatcher Pattern and the Struts Project
>at
> > Apache.org)
>
>It very much depends on the application. If it's an internal application
>where
>the chance that the user will get fed up and decide not to continue with
>the
>form-filling is minimal, then you may be right that the best design is a
>stateless session bean to do the seven little updates.
>
>But if it's an internet application, probably 50% of the people who start
>the
>process of filling in the 7 forms will never complete them, so it would be
>better to remember the state in a Stateful Session Bean and only update the
>big
>database at the end, IF the user finishes.
>
>Ian
>
>========================================
>Ian McCallion
>Alexis Systems Limited
>Romsey, UK
>Tel: +44 1794 514883
>Fax: +44 1794 501692
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
===========================================================================
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".