Robert McIntosh wrote:

I tend to agree with your stricter definition, which also IMHO automatically makes it thread-safe.
Not necessarily true. As I mentioned before, if the stateless component maintains a reference to a non thread safe component, say a SAX handler or a JDBC connection, then the component may not be thread safe because the reference isn't. Some apps got into trouble with this when it came to servlets; they used class variables for non thread-safe objects.
To clarify my statement:

According to the stricter definition (no state at all), it would be trivially thread-safe. According the "laxer" definition (no client state), it might not be thread-safe.

cheers,

Ulrich



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

Reply via email to