Entity Manager Dao Factory Thread Safety
In the example you have a MovieDaoFactory which is Application Scoped.
In it you inject an Entity Manager which is not a thread safe object.
Then you produce a MovieDaoImpl without specifying a scope which means it is produce as application scoped.
Which in turn means that the DAO uses a non thread safe instance of Entity Manager.
Am I wrong in the above thinking? Please explain!
Thank you in advance