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.

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)



> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ian McCallion
> Sent: Monday, July 30, 2001 9:51 AM
> To: [EMAIL PROTECTED]
> Subject: Re: EJB Session versus HttpSession
>
>
> Piyush Nigam wrote:
> >
> > Hi,
> > I have a scenario where seven forms are submitted to complete a
> > transaction. My options are to :
> > 1) maintain all the values from each form in the
> HttpSeession and on the
> > final submission call a stateless session bean to manage my
> transaction.
> > This ensures fewer remote calls
> > 2) Reach values submitted by each form to a stateless
> session bean and keep
> > passing its handle in the HttpSession. This reduces remote
> calls but places
> > the session management responsibility on a less efficient framework.
> >
> > What do you think is the better choice?
>
> (1) If you use HTTPSession for the data it will travel up and
> down the wire each
> time. This could create a possible security problem and could
> create a possibly
> worse performance problem than using a Session Bean.
>
> (2) If you use a Stateless Session Bean you'll need to save
> the partially
> complete (and maybe never-to-be-completed) data on a database.
>
> (3) So I'd say use a Stateful Session Bean.
>
> cheers... Ian
>
>
> ========================================
> Ian McCallion
> Alexis Systems Limited
> Romsey, UK
> Tel: +44 1794 514883
> Fax: +44 1794 501692
> ========================================
>
> ==============================================================
> =============
> 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".
>

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