Tom,
is it possible to specify the database server on an EntityManager basis?
In other words, what can you do if you want to connect to loads of
different hosts, but don't want to recreate EntityManagerFactory for
each one (since that takes ages).
Jaka
On 19. Mar 2009, at 19:23, Tom Ware 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.)
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
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users