I am implementing a web application (JEE6, EJB WebProfile) using Oracle DB. My problem is that I need to change the database schema (name) used without recompiling / repackaging the application. So what I want (this is just an idea, maybe someone has a better one) is to have some configuration (JNDI) on the server that specifies the schema name. But how to configure Eclipse Link to use a different schema name at runtime?
More details:
I am currently using a file orm.xmlto indicate a schema name. But the application uses three different schema names (one for development, one for integration test and one for production), so I need to compile and package (maven) the application 3 times.
I have a JEE6 EJB WebProfile application running on Glassfish using Oracle DB, and the database connection is handled by the application server and verified by the application through JNDI.
Any authority has an idea on how to set up the database schema name at run time.
Ralph source
share