4.8. Accessing Multiple Databases

Through the properties we've covered thus far, you can configure each EntityManagerFactory or PersistenceManagerFactory to access a different database. If your application accesses multiple databases, we recommend that you maintain a separate properties file for each one. This will allow you to easily load the appropriate resource for each database at runtime, and to give the correct configuration file to Kodo's command-line tools during development.


Skip navigation bar   Back to Top