6 Using Oracle True Cache in Your Applications
When True Cache is configured, applications must decide whether to query data from True Cache or the primary database.
- Methods for Connecting to True Cache
Applications can use True Cache in two ways. - Sample Java Code Using the JDBC Thin Driver
The JDBC method is illustrated by the following Java code using the JDBC Thin driver. - Sample Java Code for Applications Using a Native Connection to the Database
The following Java code illustrates how to use True Cache with applications that use an object-relational mapping (ORM) framework. - Best Practices for Load Balancing in a Uniform Configuration
If multiple True Caches exist and serve the same database application service, the listener automatically distributes and load balances sessions to each cache. In a uniform configuration, the listener picks a True Cache randomly or based on load, and all True Caches cache the same data.