Imran Bohoran wrote:
> Can some one tell me what exactly
> the RunData Object does. Ok the doc says it's passed within turbine and that
> it provides the threading mechanism to the whole system. I'm a bit confused
> though. say if I have an Action event which will execute a method which I
> have specified how whould I access the RunData object there. Should
> construct a new one ?
You should never manipulate RunData object itself. When the user hits your
application, an instace of RunData is created, filled with information,
(ServletConfig, HttpRequest, HttpResponse and other utility objects like
ParameterParser) and then is passed as an argument to all of your modules
that participate in request processing (the Action, Screen, and Navigations).
When request processing is finished this instance of RunData is disposed.
> I want a RunData object to have a HttpServletSesison
> object. some of the examples had it passed in as a parameter either a lone
> or with a WebContext object. But how would it be passed.
If you need to access the HttpSession object, it is already stored in the
RunData for you. use runData.getSession() to get it, but using it is not recommended.
If you wish to associate ceratin Java object's with particular user's session
you should use runData.getUser().setTemp( String name, Object object ) and
related methods. (see om.security.User interface).
Rafal
--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]