Ulf Dittmer wrote:Servlets are not generally thread-safe - they're thread-safe only if you make them so. Not using instance variables can (and should) be part of that, but by itself that is not sufficient.
Tarun Oohri wrote:
Ulf Dittmer wrote:Servlets are not generally thread-safe - they're thread-safe only if you make them so. Not using instance variables can (and should) be part of that, but by itself that is not sufficient.
Thanks Dittmer, please tell me the way i am relating servlet above is right or wrong..Just want to know if i am thinking in right direction or not!!!
Daniel Val wrote:If you think well, you should not need any state anyway.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.