Re: multithreading and filters

Nic Ferrier <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Minos Chadgidakis <[email protected]> writes:

>
> Do i have to consider about multithreading?

yes.


> Is there a possibility that while istimedOut is checking session1,
> another call to the same function (but on session2) could affect in
> any way the first call?

Yes. But do the methods have side effects? that is does the session
manager have shared state that will be adversley affected by multiple
validations occuring?


> Do i have to make all validating functions synchronized?

No. Not unless they are accessing some shared resource.


> If i make all these functions static (tempting!), won't there be
> conflicts?

What do you mean conflicts?




Nic

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.