Code in Client Program
EntityManagerFactory factory =
Persistence.createEntityManagerFactory("titan");
EntityManager entityManager = factory.createEntityManager();
After running client program it throwing error
Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named titan
There is any other way to create EntityManagerFactory or How to create entity manager without using Stateless Session Bean.