From what I know, the Global pull tools are shared across all users (and hence tomcat threads), so must be thread safe if they contain any member attributes (I've been using java.lang.ThreadLocal to handle this issue).
(Hazarding a guess here) The Session pull tool according to Henning is created for each user, however if a user submits multiple requests and each request gets a separate thread you'll need to make sure that the session pull tool is also thread safe (as the same session pull tool would be used by each thread).
Sorry, don't know much about the persistent pull tool.
Request pull tools from what I know are instantiated for every request, so do not need to be thread safe.
PS: My comments are based on what I know from using it for the past ~6mths so if there are any inaccuracies please correct. :)
PPS: Thanks for answering my questions Henning.
Sachin Kumar wrote:
Hello,
While going through a documentation on pull service at
http://jakarta.apache.org/turbine/turbine-2.2.1/services/pull-service.html
, I am not clear what exactly we mean by threadsafe, as this is used for
all the scopes (global, session, persistent) except request.
Doesn't it means that tools are shared between users ?? except
"request" scope. Can anyone clarify on this please.
Thanks in advance.
-Sachin
[EMAIL PROTECTED] 7/2/2003 2:25:45 PM >>>
CP Lim <[EMAIL PROTECTED]> writes:
Hello,
I've got some questions about Session Pull tools.
1. Are they shared across multiple users? Eg. If User A and User B logs in, are they going to share the same Session Pull tool or are
they
both going to get separate instances of the pull tool?
User specific. Only global tools are shared between the users.
2. Am I right in assuming that session level pull tools are recycled
as
well, so if I store any data on the session pull tool, they will have
to
be cleared during the execution of the 'void init(Object)' method?
Yes.
Regards Henning
-- R E D S H E R I F F C.P. Lim - Software Engineer Level 1, 10 Queens Road +61 3 9864 0733 tel Melbourne VIC +61 3 9864 0778 fax Australia +61 413 781 846 mob
This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you have received this message in error please notify us immediately by return email or telephone +61 (3) 9659 0432, then delete this message. Any views expressed in this message are those of the individual sender and many not necessarily reflect the views of Red Sheriff.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
