File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes Persistence Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Persistence Question" Watch "Persistence Question" New topic

Persistence Question

Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
How can I do away with using the persistence.xml file when creating the EntityManager or at least put the database connection in a hashMap as in;

EntityManagerFactory emf = Persistence.createEntityManagerFactory("EJB_Project", new HashMap());
I agree. Here's the link:
subject: Persistence Question
It's not a secret anymore!