aspose file tools*
The moose likes Object Relational Mapping and the fly likes jpa problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
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
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2885
    
  13

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


What did you mean by this?


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
My 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://aspose.com/file-tools
 
subject: jpa problems
 
Similar Threads
Bind the server IP to the EJB JNDI name
No Persistence provider for EntityManager named.....
EJB can't find Optional Package and thus Persistence Unit in it
EAR packaging - @Persistence Unit injection fails
Standalone JPA example