Hi Leandro,

> for how long will an Action be in memory?
First, for your question:  As long as the servlet is alive.
    cf. http://struts.apache.org/userGuide/building_controller.html#action_design_guide

> My question is:
> In the first situation i mentioned, i had to save a
> reference to my Stateful session ejb in HttpSession
> because 4 action would need that reference. But what
> should i do for the last situation?? Only one Action
> will handle the user requests, so can i ASSUME that
> this Action will still be in memory for next requests
> and consequently this Action will still have a
> reference to my my Statefull Session ejb (naturally,
> this reference would be a member of the action).??
> For how long???
Seems to me your real question is "how long is HttpSession's scope?". 
Which can be specified in your web.xml, using
/web-app/session-config/session-timeout.  Sorry, I forgot the default
value.

Best regards,
-- Shinobu Kawai

--
Shinobu Kawai <[EMAIL PROTECTED], [EMAIL PROTECTED]>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to