posted 19 years ago
Hi Robert,
Generally speaking is better to use the synchronizedCollection() method of the Collections class:
However, generally speaking I really like the topic you�ve suggested: can developer synchronize the code inside of ejbs? My answer would be better avoid it, but it could be acceptable if requirements prove it necessary. There are other similar topics, like using singletons with ejbs that are also not recommended, but they still could be valuable assets in a j2ee design. What I�m trying to say I believe is that the specs have a lot of value, but practice also proved that sometimes going beyond the specs is not that bad either. What do you think?
Regards.
I think, therefore I exist -- Rene Descartes