Book Image

Oracle Coherence 3.5

By : Aleksandar Seovic
Book Image

Oracle Coherence 3.5

By: Aleksandar Seovic

Overview of this book

Scalability, performance, and reliability have to be designed into an application from the very beginning, as there may be substantial cost or implementation consequences if they need to be added down the line. This indispensible book will teach you how to achieve these things using Oracle Coherence, a leading data grid product on the market.Authored by leading Oracle Coherence authorities, this essential book will teach you how to use Oracle Coherence to build high-performance applications that scale to hundreds of machines and have no single points of failure. You will learn when and how to use Coherence features such as distributed caching, parallel processing, and real-time events within your application, and understand how Coherence fits into the overall application architecture. Oracle Coherence provides a solid architectural foundation for scalable, high-performance and highly available enterprise applications, through features such as distributed caching, parallel processing, distributed queries and aggregations, real-time events, and the elimination of single points of failure.However, in order to take full advantage of these features, you need to design your application for Coherence from the beginning. Based on the authors' extensive knowledge of Oracle Coherence, and how to use it in the real world, this book will provide you with all the information you need in order to leverage various Coherence features properly. It contains a collection of best practice-based solutions and mini-frameworks that will allow you to be more productive from the very beginning.The early chapters cover basics like installation guidelines and caching topologies, before moving on to the domain model implementation guidelines, distributed queries and aggregations, parallel processing, and real-time events. Towards the end, you learn how to integrate Coherence with different persistence technologies, how to access Coherence from platforms other than Java, and how to test and debug classes and applications that depend on Coherence.
Table of Contents (22 chapters)
Oracle Coherence 3.5
Credits
Foreword
About the author
Acknowledgements
About the co-authors
About the reviewers
Preface
12
The Right Tool for the Job
Index

Prerequisites


Before you can build, deploy, and run the various components of the Coherent Bank application, you will need to have several prerequisites in place.

First of all, we strongly suggest that you run all the components of the application on a single Windows XP machine, at least the very first time. There are several reasons for this, but the most important one is that Windows is the only OS where you will be able to run all three applications —while we have tested Java and C++ applications both on Windows and OS X, you will only be able to run .NET application on Windows.

Once you become more familiar with the application architecture and configuration, you can experiment by moving things around and running the Coherence cluster across multiple machines, the web application on OS X, the .NET application on Windows, and the C++ application on Linux, but in the beginning you should keep things simple.

The following sections document other software you will need and any specific configuration settings you need to make.

Sun Java JDK 1.6

If you don't already have it (and my guess is you do), you should download and install the latest release of Sun's JDK 1.6. Make sure that you have the full JDK installed, not just the JRE.

You will also need to set the JAVA_HOME environment variable to point to your JDK. For example, if you installed JDK into the default location, your JAVA_HOME should look similar to the following:

JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18

Microsoft Visual Studio 2008

You will need Visual Studio 2008 to build the .NET and C++ sample applications. If you don't already have it, you can download express editions of Microsoft Visual C# and Microsoft Visual C++ from http://www.microsoft.com/express/Windows/, but please keep in mind that we have only tested the build process with the full version of Visual Studio 2008.

The .NET application requires .NET Framework 3.5, but if you have Visual Studio 2008 this should already be installed.

Oracle Coherence 3.5.3

The application should work with other Coherence versions as well, but it has been tested with 3.5.3 only, so it is strongly recommended that you use that release.

You will need to download and install several packages:

  • Download the Coherence Java release and install it according to the instructions in Chapter 2, Getting Started. Set the COHERENCE_HOME environment variable to point to your installation directory containing the bin, lib, and other Coherence folders.

  • Download and install Coherence for C++ 32-bit Windows release. You should install it by extracting the coherence-cpp directory from the downloaded archive into the COHERENCE_HOME directory. For example, if your COHERENCE_HOME is C:\coherence, your Coherence for C++ installation should be in C:\coherence\coherence-cpp.

  • Download and install Coherence for .NET. Simply run the installer from the download archive and accept the installation defaults when prompted. Make sure that you use the default installation path, as that's the location used to find Coherence.dll when building the .NET sample application.

Ant 1.7+

You will need to have Ant installed and in your system path in order to build and deploy the application. If you don't already have it, you can download it from http://ant.apache.org/.

Make sure that you set the ANT_HOME environment variable to the Ant installation directory and that you add ANT_HOME\bin to your PATH.

NAnt 0.86

You will need NAnt to build the .NET sample application. NAnt can be downloaded from http://nant.sourceforge.net/.

Make sure that you add NAnt's bin directory to system PATH as well.