ANNOUNCEMENT: community.oracle.com is currently Read only due to planned upgrade until 29-Sep-2020 9:30 AM Pacific Time. Any changes made during Read only mode will be lost and will need to be re-entered when the application is back read/write.
We have a requirement to specify the datasources to be used by JPA dynamically at runtime. The customer would like to use different DB services for the same instance where the DB services will leverage Oracle DB resource management capabilities and different API calls that use JPA underneath is expected to provide different service levels based on the datasource configured for the API. How can we achieve that in JPA/Toplink ?