Hi,
Have a look at "Stateful session beans" ( posted on friday ) on this list.
Benjamin
Pascuzzi Domenico a �crit :
> Hello!
> I'm a student, Domenico
> HERE ARE TWO QUESTIONS:
> 1) I want to use Session bean stateful in order to maintain client state in a
>web-based
> application. Http is stateless, so I must associate a client's request to a current
> Session that contains all session information. In order to make this association I
>use
> HttpSession class (package javax.servlet.http) that has a session ID that I use to
> retrive the object HttpSession. In HttpSession object, I put the handle of Session
>bean
> stateful associated with the client. So in HttpSession I have
> a) unique ID
> b) handle of stateful session bean
> Do you know if in EJB spec there is a possibility to keep session without using
> HttpSession or is it the only possibility?
> Do you have some ideas similar to that I have described you?
> 2) Two browser windows on the same machine have different ID,
> during all the duration of session. The problem is that if you close and re-open
> the same window, the unique ID changes, so client must restart operation.
> In my application I have frequent disconnections....i'm looking about a method to
> uniquely associate an ID to a browser in order to continue operations even if there
>is
> a lost of connection. I think that this can be accomplished associated a username to
> client, that so must authenticate itself before entering site. If so we can maintain
> session (server-side) associated to that username. If connection has lost, the client
> riconnects and can find the interrupted session marked by its same username.
> Do you have an idea how to address this problem in another manner?
>
> Pls, don't hesitate to contact me....
>
> Bye
> Domenico
>
> ===========================================================================
> 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".