posted 13 years ago
Dear All,
if I have 1 instance of the "myAccountsService","MyAccountHandler"and "geUserAccountDAOImpl" and there are many clients logged into this web-based application..is there a potential danger of requests getting mixed up and the wrong responses going back to the users?
for example, the "geUserAccountDAOImpl"is reading and writing to the db based on requests from users, say user "A" and user "B". But since there is only a single instance of "geUserAccountDAOImpl", and if "A" and "B" both call a function called "saveAccount(Account o)" or "getAccount(long id)" at the same time, will the fact that there is only one instance create any problems in the application?
If not, then what is the real use of singleton="false"?
Thanks,
selva