SimpleDataFomat is not thread safe and it is not recommended to use Synchronize in JEE. How to handle this in JEE ?
Thanks
SimpleDataFomat is not thread safe and it is not recommended to use Synchronize in JEE. How to handle this in JEE ?
Thanks
If you have to stick to the SimpleDateFormatter class don't share the SimpleDateFormatter object in a member variable but just create a new one inside the method to be on the safe side. Another approach is to put it in a ThreadLocal.