You could put a handle for your stateful session bean in the http session
state for your client. It does seem kind of redundant since you are using
two session state mechanisms here. You could simply use http session state,
and pass state information into a stateless session bean as necessary...
-Chris.
> -----Original Message-----
> From: Shelly Aggrawal [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, November 22, 1999 7:25 AM
> To: [EMAIL PROTECTED]
> Subject: State and Session Management
>
> Dear All,
> I'm Writing an Application in which a Servlet is used to Access a Stateful
> Session Bean , which in turn accesses multiple Entity beans.The Stateful
> Session Bean manages the workflow and maintains the Client State .
>
> Here in this Application we are supposed to add items to a shopping cart .
>
> But as a Servlet State is not maintained across across multiple requests
> from a Client , what is the use of Stateful Session Bean?
> I can maintain the Client Session state in a Servlet by a Cookie , and the
> shopping Cart contents in a temporary Database on the Server associated
> with the Client Session state.
>
> But then the Stateful Session Bean has no use here . Because each time the
> Servlet has to create a new instance of the session bean, as each time a
> new Instance of the Servlet will be invoked for each request from the
> Client.So am I Better off using stateless Session Bean instead of Stateful
> Session Bean.Or is there any other alternative to this solution or am I
> wrong somewhere.
>
> Thanks for Reading,
> Parikshit
>
> ==========================================================================
> 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".