[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Overwrite session manager settings
|
Hi Phil,
In EclipseLink, EntityManagerFactory holds the object that controls database
connections. As a result you need to provide the database properties to the
EntityManagerFactory at creation time. (In the bootstrap API, a Map can be
provided to the Persistence.createEntityManagerFactory(String, Map) method.)
If you need to regulate these things on an EntityManager basis, there is some
EclipseLink specific API that can be used to do that, but for most people, the
general API is sufficient.
-Tom
Philipp Kursawe wrote:
Is it possible to overwrite the settings made in the persistence.xml
when creating the EntityManager using an EntityManagerFactory.create(Map)?
It seems like that the properties I am handing in are not valued.
Is it in any other way possible to set certain persistence.xml values
from within the program? I mean I cannot seriously be asked to put login
credentials inside a JAR?
I would like the user to configure those values and feed them to
EclipseLink programmatically not from the persistence.xml.
Thanks for your help!
Phil
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users