File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Persistence Question" Watch "Persistence Question" New topic
Author

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: http://aspose.com/file-tools
 
subject: Persistence Question
 
It's not a secret anymore!