Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Testing servlet for thread safety.

Adam Hardy

2003-12-09

Replies:

On 12/09/2003 07:16 AM Antony Paul wrote:
> Hi,
>   I asked this question as part of another mail but Mr. Tim Funk left it
> unanswered.
> How to test a servlet for thread safety.

Antony,
it might be the case that he didn't have time to answer, you know.
Nobody on this list is obliged to answer any questions. Attempting to
'name and shame' someone into answering your questions is not going to
make you popular and might backfire on you.

In answer to your question, the best approach would be check first that
you are not abusing any singletons, static methods or member variables
in your servlets.

Then you should set up tests using one of the testing frameworks
available that allows you to submit real data and check the results.

HTH
Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.