One suggestion, if you have planned to use this Connection pool code in your production environment, please have a look at the whole getConnection() method is synchonized.. i think this will hit the performance considerably.. please use synchronized blocks inside the method, wherever required..
Originally posted by CM Ananth: One suggestion, if you have planned to use this Connection pool code in your production environment, please have a look at the whole getConnection() method is synchonized.. i think this will hit the performance considerably.. please use synchronized blocks inside the method, wherever required..
so i should alwasy prefer synchronized blocks over synchronized methods in all the cases??? thanks!!!
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Sasparilla and fresh horses for all my men! You will see to it, won't you tiny ad?
Gift giving made easy with the permaculture playing cards