Forums Register Login

jpa problems

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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



What did you mean by this?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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 ?
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2303 times.
Similar Threads
Bind the server IP to the EJB JNDI name
No Persistence provider for EntityManager named.....
EAR packaging - @Persistence Unit injection fails
Standalone JPA example
EJB can't find Optional Package and thus Persistence Unit in it
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 22:44:10.