File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes jpa problems Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "jpa problems" Watch "jpa problems" New topic
Author

jpa problems

Kevin Pang
Ranch Hand

Joined: Mar 01, 2005
Posts: 38
can i load the persistence.xml in my java code? and the persistence.xml is not in the "META-INF" folder.
how to achieve this?

thanks in adv.
Devaka Cooray
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2691
    
    3

Kevin Pang wrote:can i load the persistence.xml in my java code?


What did you mean by this?


Author of ExamLab (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
Kevin Pang
Ranch Hand

Joined: Mar 01, 2005
Posts: 38
i want to load the persistence.xml by my java source code, not by toplink jpa, so i can load the persistence.xml from outside the jar file directory META-INF.
Kevin Pang
Ranch Hand

Joined: Mar 01, 2005
Posts: 38
I found in toplink src class:
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider



any solution to modify the persistence configuration file path without change toplink source ?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: jpa problems
 
Similar Threads
EAR packaging - @Persistence Unit injection fails
EJB can't find Optional Package and thus Persistence Unit in it
No Persistence provider for EntityManager named.....
Bind the server IP to the EJB JNDI name
Standalone JPA example