dao as a member of a servlet - normal?

Posted by EugeneP on Stack Overflow See other posts from Stack Overflow or by EugeneP
Published on 2010-05-13T07:38:10Z Indexed on 2010/05/13 7:44 UTC
Read the original article Hit count: 189

Filed under:
|
|
|
|

I guess, DAO is thread safe, does not use any class members.

So can it be used without any problem as a private field of a Servlet ? We need only one copy, and

multiple threads can access it simultaneously, so why bother creating a local variable, right?

© Stack Overflow or respective owner

Related posts about java

Related posts about servlets