1/19
Contents
List of Examples
List of Figures
List of Tables
Title and Copyright Information
Preface
Audience
Documentation Accessibility
Related Documents
Conventions
1
Installing Coherence and JDeveloper
1.1
Downloading and Installing Coherence
1.2
Downloading and Installing JDeveloper
1.3
Testing a Coherence Installation
1.3.1
Configure and Run the Sample Cache Server Application
1.3.2
Configure and Run the Sample Cache Client Application
1.3.3
Exercise the Sample Cache Client Application
1.3.4
Troubleshooting Cache Server Clustering
1.3.4.1
Restricting Coherence to Your Own Host
1.3.4.2
Advanced Steps to Restrict Coherence to Your Own Host
2
Using JDeveloper with Coherence
2.1
Configuring Oracle JDeveloper for Coherence
2.2
Learning JDeveloper Basics
2.2.1
Creating a New Application and Project
2.2.2
Creating a New Project in an Existing Application
2.2.3
Creating a Java Class
2.2.4
Changing Project Properties, Setting Runtime Configuration
2.2.5
Adding JARS and Libraries to the Project Classpath
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 Configuration Files and Cache Server Executable
4.2.5
Run the Sample
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
Edit the Cache Server Start-Up File
5.2.6
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
Re-running 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 Database Connection and Create the JPA Persistence Unit
8.2.4
Create the JPA Persistence Unit and Entity Beans
8.2.5
Create the Cache Configuration File for JPA
8.2.6
Create a Cache Server Start-Up File
8.2.7
Modify JPA Project Properties
8.2.8
Create a Class to Interact with the Data Object
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 which Creates a Cache
9.2.2
Create a Cache Configuration File
9.2.3
Configure the Project Properties
9.2.4
Edit the Cache Server Start-Up File
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 CacheStore
9.3.3
Modify the Cache Configuration File
9.3.4
Create a Class to Create 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 File for a Cache Server
10.2.9
Create a Start-Up File for a Cache Server with a Proxy Service
10.2.10
Configure Project Classpaths and Runtime Properties
10.2.11
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
Run the Access Invocation Service Example
11
Caching Sessions with Coherence and WebLogic Server
11.1
Introduction
11.2
Caching Session Information for Web Application Instances
11.2.1
Ensure that You are Using Coherence 3.6 with WebLogic Server 10.3.3
11.2.2
Start a Cache Server
11.2.3
Configure and Start the WebLogic Server
11.2.4
Create a Machine
11.2.5
Create the WebLogic Servers
11.2.6
Create a Coherence Cluster
11.2.7
Deploy the Shared Library Files
11.2.8
Create the Counter Web Application
11.2.9
Deploy the Application
11.2.10
Start the Node Manager and the WebLogic Servers
11.2.11
Verify the Example
A
Coherence Client Application Commands
A.1
batch
A.2
bulkput <# of iterations> <block size> <start key>
A.3
bye
A.4
clear
A.5
destroy
A.6
get <key>
A.7
hash
A.8
help
A.9
inc <key> [<count>]
A.10
kill
A.11
list [<map name>]
A.12
listen [('start' | 'stop') [('cluster' | 'local')]]
A.13
lock <key> [<timeout>l]
A.14
maps
A.15
memory
A.16
put <key> <value>
A.17
release
A.18
remove <key>
A.19
scan <start key> <stop key>
A.20
services
A.21
size
A.22
unlock <key>
A.23
waitkey <start key> <stop key>
A.24
who | cluster
A.25
whoami | service
A.26
worker <command>
A.27
#<repeat count> <command>
A.28
@<command>
A.29
&<functionName> [paramValue]*
Index
Scripting on this page enhances content navigation, but does not change the content in any way.