score:7

is it good approach to use above technique in web based application???

no. datacontext is not thread safe. you cannot share 1 datacontext among the different threads handling different requests safely.

also - this pattern is called singleton, not factory


Related Query

More Query from same tag