[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Overwrite session manager settings
|
On Thu, 19 Mar 2009 19:23:07 +0100, Tom Ware <tom.ware@xxxxxxxxxx> wrote:
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.)
Unfortunatly I have no control over the creation of the EMF... it is
handled by Dynamic-JPA.
I will have to contact the author what we can do there, I guess.
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
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users