I have a situation in my webapp where the user (administrator) can 'Publish' items. I need to make it so only one person can 'publish' at a time. Would this be a valid use of 'isThreadSafe'? Would it make user #2 wait until the page had finished processing for user #1? It would save me from writing a bunch of messy locking code. Thanks!

/kurt


Shapira, Yoav wrote:
Hi,
Don't rely on SingleThreadModel, it's more than deprecated: it's evil.
Don't use the isThreadSafe directive, don't use SingleThreadModel.

Yoav Shapira http://www.yoavshapira.com



-----Original Message-----
From: zerol tib [mailto:[EMAIL PROTECTED]
Sent: Monday, December 06, 2004 10:23 AM
To: [EMAIL PROTECTED]
Subject: <[EMAIL PROTECTED] isThreadSafe="false" %> does not work

Howdy,

I compared two servlets' source code compiled from JSPs,
at the beginning of  one jsp I add page directive:
<[EMAIL PROTECTED] isThreadSafe="false" %>
and  the other, <[EMAIL PROTECTED] isThreadSafe="true" %>.

But the two servlet are the same , I had thought the first
servlet will implement interface SingleThreadModel, but it
didn't. Could anyone give me a hint?

BTW, jsp compiler (Lomboz) says SingleThreadModel
is deprecated.

Thanks in advance.

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





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.


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



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



Reply via email to