Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Can I create database sessions from an external file?
Can I create database sessions from an external file? [message #800204] Thu, 16 February 2012 15:33 Go to previous message
Dean Schulze is currently offline Dean Schulze
Messages: 2
Registered: February 2012
Junior Member
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.

Thanks.

 
Read Message
Read Message
Read Message
Previous Topic:stackOverFlowError
Next Topic:Not creating the Unique constraint on the DB (postgreSQL)
Goto Forum:
  


Current Time: Tue May 21 17:33:45 EDT 2013

Powered by FUDForum. Page generated in 0.01753 seconds