0 Replies Latest reply: Jul 3, 2007 7:24 AM by Bhagwat Balshetwar RSS

ex9_1 Error

Bhagwat Balshetwar Newbie

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.