so, this code is thread safe:
@PersistenceUnit(name = "footprint")
private EntityManagerFactory emf;
public T read(final Serializable primaryKey) throws Exception {
EntityManager manager = emf.createEntityManager();
try {
return manager.find(entityClass, primaryKey);
} finally {
manager.close();
}
}
??