Hi,
On Tue, 20 Jul 1999, Claude Zervas wrote:
CZ| >If you need these parameters in other methods in your servlet (which is
CZ| >what I assume you want do), you've to pass the table as parameter .. no
CZ| >way around it ..
CZ|
CZ| Yes there is, just put the usage in a synchronized block:
CZ|
CZ| synchronized ( table ) {
CZ| ....
CZ| table.put( obj );
CZ| ...
CZ| }
Of course .. and I could do
public synchronized void doPost() { }
as well - but then I loose the features of multithreading. It could,
however, be a solution to a simple servlet not using too much processing
time.
Or I could use SingleThreadModel-Servlets ..
Nevertheless - its no good design.
ciao,
-hen
---
Henner Zeller [EMAIL PROTECTED]
PGP pub key [77F75B39]: finger [EMAIL PROTECTED]
If Microsoft is the answer, it must have been a VERY silly question.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]