Home
/
Middleware
/
Oracle Coherence
1/20
Contents
List of Examples
List of Figures
List of Tables
Title and Copyright Information
Preface
Audience
Documentation Accessibility
Related Documents
Conventions
What's New in This Guide
New and Changed Features for 12
c
(12.1.2)
Other Significant Changes in this Document for 12
c
(12.1.2)
1
Installing and Configuring Coherence
1.1
Installing Coherence
1.2
Testing a Coherence Installation
1.2.1
To Test a Coherence Installation—Main Steps
1.2.2
Configure and Run the Sample Cache Server Application
1.2.3
Configure and Run the Sample Cache Client Application
1.2.4
Exercise the Sample Cache Client Application
1.2.5
Troubleshooting Cache Server Clustering
1.2.5.1
Restricting Coherence to Your Own Host
1.2.5.2
Advanced Steps to Restrict Coherence to Your Own Host
1.3
Introducing the Coherence examples.zip File
2
Installing and Configuring Eclipse and OEPE with Coherence
2.1
Installing Eclipse and OEPE
2.2
Configuring Eclipse and OEPE for Coherence
2.3
Creating a New Project in the Eclipse IDE
2.4
Launching a Cache Server in the Eclipse IDE
2.5
Learning Eclipse IDE Basics
2.5.1
Creating a Java Class
2.5.2
Creating a Runtime Configuration
2.5.3
Stopping Cache Servers
3
Accessing the Data Grid from Java
3.1
Introduction
3.2
Creating Your First Coherence-Based Java Program
3.2.1
Create a Program to Put Values in the Cache
3.2.2
Create a Program to Get Values from the Cache
3.3
Creating Your First Coherence-Based Java Application
3.3.1
Create the Console Application
3.3.2
Run the Console Application
4
Working with Complex Objects
4.1
Introduction
4.2
Creating and Caching Complex Objects
4.2.1
Create the Data Objects
4.2.2
Create the Complex Object
4.2.3
Create the Driver Class
4.2.4
Create the POF and Cache Configuration Files
4.2.5
Run the Sample Project
5
Loading Data Into a Cache
5.1
Introduction
5.2
Populating a Cache with Domain Objects
5.2.1
Create a Class with the Key for the Domain Objects
5.2.2
Edit the POF Configuration File
5.2.3
Create the Data Generator
5.2.4
Create a Console Application to Load the Cache
5.2.5
Run the Cache Loading Example
5.3
Querying and Aggregating Data in the Cache
5.3.1
Create the Class to Query Cache Data
5.3.2
Run the Query Example
5.3.3
Edit the Query Example to Perform Aggregations
5.3.4
Run the Query and Aggregation Example
6
Simplifying Cache Calls and Aggregations
6.1
Introduction
6.2
Simplifying the Query Example
6.3
Rerunning the Query Example
7
Listening for Changes and Modifying Data
7.1
Introduction
7.2
Creating a Cache Listener
7.2.1
Create a Class to Listen for Changes in the Cache
7.2.2
Run the Cache Listener Example
7.3
Responding to Changes in the Cache
7.3.1
Create a Class to Update Entries in the Cache
7.3.2
Edit the POF Configuration File
7.3.3
Run the Cache Update Example
8
Using JPA with Coherence
8.1
Introduction
8.2
Mapping Relational Data to Java Objects with JPA
8.2.1
Unlock the OracleXE Database
8.2.2
Configure the Project for JPA
8.2.3
Create the JPA Persistence Unit and Entities
8.2.4
Edit the persistance.xml File
8.2.5
Create the Cache Configuration File for JPA
8.2.6
Create a Cache Server Start-Up Configuration
8.2.7
Create a Class to Interact with the Data Object
8.2.8
Create a Run Configuration for RunEmployeeExample
8.2.9
Run the JPA Example
9
Interacting with the Cache and the Database
9.1
Introduction
9.2
Creating a Cache Application
9.2.1
Create an Application that Constructs a Cache
9.2.2
Create a Cache Configuration File
9.2.3
Create a Run Configuration for the Application
9.2.4
Create the Cache Server Start-Up Configuration
9.2.5
Run the Cache Creation Application
9.3
Creating a Database Cache
9.3.1
Create an Oracle Database Cache
9.3.2
Create a Class to Define a Custom Cache Store
9.3.3
Modify the Cache Configuration File
9.3.4
Create a Class to Construct the Database Cache
9.3.5
Run the Database Cache Application
10
Working with Security
10.1
Introduction
10.2
Enabling Token-Based Security
10.2.1
Use a Security Helper File
10.2.2
Create an Identity Transformer
10.2.3
Create an Identity Asserter
10.2.4
Create the Password File
10.2.5
Enable the Identity Transformer and Asserter
10.2.6
Create a Cache Configuration File for the Extend Client
10.2.7
Create a Cache Configuration File for the Extend Proxy
10.2.8
Create a Start-Up Configuration for a Cache Server
10.2.9
Create a Start-Up Configuration for a Cache Server with a Proxy Service
10.2.10
Run the Password Example
10.3
Including Role-Based Access Control to the Cluster
10.3.1
Define Which User Roles Are Entitled to Access Cache Methods
10.3.2
Apply the Entitlements to the Cache Service
10.3.3
Create the Access Control Example Program
10.3.4
Edit the Cluster-Side Cache Configuration File
10.3.5
Run the Access Control Example
10.4
Including Role-Based Access Control to an Invocable Object
10.4.1
Create an Invocable Object
10.4.2
Create an Entitled Invocation Service
10.4.3
Create the Access Invocation Service Example Program
10.4.4
Edit the Cluster-Side Cache Configuration File
10.4.5
Create a POF Configuration File
10.4.6
Edit the Run Configurations for the Servers
10.4.7
Run the Access Invocation Service Example
11
Working with Live Events
11.1
Introduction
11.1.1
About Event Interceptors
11.1.2
About Cache Events
11.1.3
About Partitioned Service Events
11.1.4
About Event Interceptor Registration
11.2
Creating, Registering, and Executing an Event Interceptor
11.2.1
Create a Event Interceptor to Measure the Time Between a Pre- and a Postcommit Event
11.2.2
Create a Class to Delay the Processing of Events
11.2.3
Register the Timed Events Event Interceptor
11.2.4
Create a POF Configuration File for the Lazy Processor Class
11.2.5
Create a Class to Exercise the Timed Events Event Interceptor
11.2.6
Create a Driver File for Timed Events Example
11.2.7
Create a Cache Server Startup Configuration
11.2.8
Create a Startup Configuration for the Timed Events Driver
11.2.9
Run the Timed Events Example
11.3
Vetoing Pre- and Postcommit Events Using an Event Interceptor
11.3.1
Create an Event Interceptor to Detect and Veto Events
11.3.2
Register the Veto Events Event Interceptor
11.3.3
Create a Class to Exercise the Veto Events Event Interceptor
11.3.4
Edit the Driver File for the Veto Events Example
11.3.5
Run the Veto Events Example
11.4
Logging Partition Activity Using an Event Interceptor
11.4.1
Create a Class to Terminate a JVM and to Enable and Disable Logging
11.4.2
Create an Event Interceptor to Log Partition Activity
11.4.3
Create a Class to Exercise the Log Partition Activity Example
11.4.4
Register the Log Partition Activity Event Interceptor
11.4.5
Edit the POF Configuration File
11.4.6
Edit the Driver File for the Log Partition Activity Example
11.4.7
Run the Log Partition Activity Example
12
Caching Sessions with Managed WebLogic Servers
12.1
Introduction
12.2
Caching Session Information for Web Application Instances
12.2.1
Configure and Start WebLogic Server
12.2.2
Create a Machine
12.2.3
Create the WebLogic Servers
12.2.4
Create a Coherence Cluster
12.2.5
Enable a Server for Coherence*Web Local Storage
12.2.6
Create the Counter Web Application
12.2.7
Start the WebLogic Servers
12.2.7.1
To Start the WebLogic Servers from the Command Line
12.2.7.2
To Start the WebLogic Servers from the WebLogic Server Administration Console
12.2.8
Deploy the Application
12.2.9
Verify the Example
12.3
Working with Custom Session Cache Configuration Files
A
Coherence Examples in the examples.zip File
A.1
Examples Provided in the examples.zip File
A.2
Obtaining the examples.zip File
A.3
How to Build the Examples
A.3.1
How to Build the Java Examples
A.3.1.1
Prerequisites for Java
A.3.1.2
Directory Structure for Java
A.3.1.3
Build Instructions for Java
A.3.2
How to Build the .NET Examples
A.3.2.1
Prerequisites for .NET
A.3.2.2
Directory Structure for .NET
A.3.2.3
Build Instructions for .NET
A.3.3
How to Build the C++ Examples
A.3.3.1
Prerequisites for C++
A.3.3.2
Directory Structure for C++
A.3.3.3
Build Instructions for C++
A.4
How to Run the Examples
A.4.1
How to Run the Java Examples
A.4.1.1
Prerequisites for Java
A.4.1.2
Directory Structure for Java
A.4.1.3
Instructions for Java
A.4.2
How to Run the .NET Examples
A.4.2.1
Prerequisites for .NET
A.4.2.2
Directory Structure for .NET
A.4.2.3
Instructions for .NET
A.4.3
How to Run the C++ Examples
A.4.3.1
Prerequisites for C++
A.4.3.2
Directory Structure for C++
A.4.3.3
Instructions for C++
A.5
Coherence Basic Features Examples
A.5.1
Running the Example Set
A.5.2
Understanding the Features Driver File
A.5.3
Basic Data Access Example
A.5.3.1
Example Output
A.5.4
Loader Example
A.5.4.1
Example Output
A.5.5
Query Example
A.5.5.1
Example Output
A.5.6
Observer Example
A.5.7
Processor Example
A.5.7.1
Example Output
A.5.8
Query Language
A.5.8.1
Example Output
A.5.9
Data Generator
A.6
Coherence Security Examples
A.6.1
This Example Set
A.6.1.1
Running the Security Example Set
A.6.1.2
Understanding the Security Driver File
A.6.2
Password Example
A.6.3
Access Control Example
A.6.3.1
Example Output
A.6.4
Password Identity Transformer
A.6.5
Password Identity Asserter
A.6.6
Entitled Cache Service
A.6.7
Entitled Invocation Service
A.6.8
Entitled Named Cache
A.6.9
Security Example Helper
A.7
Coherence Live Events Examples
A.7.1
This Example Set
A.7.1.1
Running the Live Events Example Set
A.7.1.2
Understanding the Live Events Driver File
A.7.2
EventsExamples
A.7.2.1
EventsTimingExample
A.7.2.2
VetodEventsExample
A.7.2.3
RedistributionEventsExample
A.7.3
TimedTraceInterceptor
A.7.4
CantankerousInterceptor
A.7.5
RedistributionInterceptor
A.7.6
RedistributionInvocable
A.7.7
LazyProcessor
Scripting on this page enhances content navigation, but does not change the content in any way.