I have a Java SE (desktop) application that needs to access different databases that all have the same data model. I need to be able to configure the various datasources through an external file so the users can add or modify datasources on their own.
JPA apparently doesn't have any way to do this. All datasources have to be specified in the persistence.xml file, which makes them static.
Does EclipseLink have this capability? What I've found so far is that the sessions.xml file needs to be contained in the .jar file which makes it just as static as JPA. Can EclipseLink Session configurations be read from an external file?
Or if EclipseLink has any other way to allow dynamic configuration of database sessions that may solve my problem too.