7. Accessing Multiple Databases
Prev | Chapter 4. JDBC | Next

## 7. Accessing Multiple Databases

Through the properties we've covered thus far, you can configure each `EntityManagerFactory` to access a different database. If your application accesses multiple databases, we recommend that you maintain a separate persistence unit 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 OpenJPA's command-line tools during development.

Prev | Up | Next
6. Setting the SQL Join Syntax | Home | 8. Configuring the Use of JDBC Connections