Wednesday Mar 04, 2015

Coherence is in the Cloud as Part of Java Cloud Service

This entry is reposted from the new cloud-focused blog at Oracle, "The Cloud Front."


Today we are excited to announce a major product innovation - Oracle Coherence is now available as a feature of the Java Cloud Service (JCS). Effective immediately, users of JCS can use our cloud tooling to optionally set up Coherence within JCS.

Flexibility is a key part of the solution. You can either select an initial capacity for the Coherence data tier:

Or use the "Advanced" option to have full control over the number of virtual machines you want for Coherence, the number of managed Coherence servers per virtual machine, and the heap size of each managed server: 

The WebLogic Management Framework is used under the covers allowing you, the user to develop, deploy, manage and monitor your applications via Managed Coherence Servers.

Because the same cloud tooling creates both WebLogic and Coherence, the experience of using the two together in our cloud is a fully integrated and seamless service. As is standard with JCS, you can patch Coherence as you please in an automated rolling fashion. Backups and restores are fully coordinated with the rest of the stack.

Common reasons for using Coherence with JCS:

  • Offload and protect shared cloud services and databases
  • Deliver real-time data to cloud applications
  • Provide transparency and high availability in the cloud's data grid tier

When running a WebLogic 12.1.3+ environment in the Java Cloud Service you have access to all the Coherence cloud tooling. For Java Cloud Service Enterprise Edition 11g with Coherence, you can manually create your own Coherence cluster.

Over the coming year, we plan to release a number of Coherence-related data grid and caching services. Stay tuned for more details. 

For more information:

Tuesday Jan 27, 2015

Spinning-up a Coherence Cluster with Weblogic Scripting (WLST)

The WebLogic scripting and management features available with Coherence 12c Managed Servers make it easy to create Coherence clusters and manage applications. Using the Weblogic Scripting Tool (WLST),  the whole lifecycle of Managed Coherence Servers can be controlled, from creating and starting a Coherence cluster to deploying Coherence applications.

WLST scripts are written in Jython and can manipulate Weblogic JMX MBean's to manage Weblogic and Coherence. The flexibility and power they provide make it easy to create, configure and startup up a complete Coherence environment - in just a few minutes.  This post will outline how to do just this, using some sample WLST scripts.

Read more here.

Monday Oct 27, 2014

Coherence SIGs Coming to Europe in November!

The Coherence Special Interest Groups [SIGs] are coming to a town near you!
Quick jump to Munich Nov 4 Stockholm Nov 5 London Nov 7 Madrid Nov 12

We've invested a lot of energy over the years to be sure that you have local or semi-local access to Coherence product management and technical staff. Coming up in this round of SIGs, we have myriad topics that you'll find valuable, including showcasing the innovative usage of some of our recent 12c release features like HotCache (to keep your cache always-fresh) and Live Events for in-grid data processing.

You'll also hear a lot about our next major release (12.2.1) and get a sneak peek at some of the advances we're making for developers utilizing Java 8 (yes, Java 8 - you heard right), and support for maximum-availability architecture [MAA] across multiple data centers.

Finally, for customers of multiple Oracle products, we're participating in several Cloud Application Foundation SIGs that will incorporate WebLogic and Java at a holistic level. We look forward to seeing you there!

Munich, November 4 [with WebLogic & Java]
9 a.m. - 2:45pm
Agenda topics include Coherence road maps, WebLogic for Java EE Multitenancy, Java 8, Cache and Database Synchronization and more.
Full agenda

Stockholm, November 5 [with WebLogic & Java]
9 a.m. - 2:15pm
Agenda topics include Coherence road maps, WebLogic for Java EE Multitenancy, Java 8, Cache and Database Synchronization and more.
Full agenda

London, November 7
10 a.m. - 4:45pm
Agenda topics include Coherence road maps, Coherence + Java 8, Managing Mission-Critical Large Clusters and more.
Full agenda

Madrid, November 12
9 a.m. - 1:00pm
Agenda topics include Coherence road maps, Coherence + Java 8, Real-Time Cache Persistence and more.
Full agenda

Wednesday Apr 09, 2014

AcivityBank Deliver Real-Time Travel Transfers Using Coherence and Weblogic 12c

ActivityBank, part of TUI, is a leading provider of travel transfers. It uses Coherence and Weblogic 12c to scale and accelerated its location based transfer service, calculating location based requests inside Coherence in just a few ms. Read their use case on the Coherence Special Interest Group (SIG) website here.[Read More]

Thursday Feb 06, 2014

NTT Communications Corporation process 1.4M packets p/s using Oracle Coherence

NTT Communications Corporation select Oracle Exalogic,  Oracle Coherence, Oracle Weblogic Server and Oracle Event Processing to maximise application performance and scalability, for a networking monitoring system that processes 1.4 million packets per second through in-memory streaming. Read the full story here.[Read More]

Monday Oct 14, 2013

Coherence Virtual Developer Day: November 5th

We're excited to announce an upcoming FREE virtual developer day focused on Coherence and WebLogic.

This day, focused on developers, will guide you through tooling updates and best practices around creating applications with WebLogic and Coherence as target platforms. We'll also explore advances in how you can manage your build, deploy and ongoing management processes to streamline your application's life cycle. And of course, we'll conclude with some hands-on labs that ensure this isn't all a bunch of made-up stuff - get your hands dirty in the code!

November 5, 2013
9am PT/12pm ET

We're offering two tracks for your attendance, though of course you're free to attend any session you wish. The first will be for pure developers with sessions around developing for WebLogic with HTML5, processing live events with Coherence, and looking at development tooling. The second is for developers who are involved in the building and management processes as part of the application life cycle. These sessions focus on using Maven for builds, using Chef and Puppet for configuration and more.

We look forward to seeing you there, and don't forget to invite a friend!

Wednesday Jul 31, 2013

Running the Managed Coherence Servers Example in WebLogic Server 12c

With the recent launch of Coherence 12c (12.1.2), I'd like to go into more detail about one of the new features, Managed Coherence Servers, as well as outline how you can run the sample application available with a WebLogic Server 12.1.2 install.

Managed Coherence Servers - Introduction

Managed Coherence Servers provide tight integration between WebLogic Server and Coherence. This integration allows for a simplified and streamlined development and management environment for distributed applications. The functionality allows end users to build a new archive type (Grid Archive aka GAR), which can be deployed and managed via standard WebLogic Server best practices. Developers can now streamline their build processes to generate GARs. Operations departments can now standardize deployment of Coherence and Coherence applications in the test and production environments. 

Traditionally, Coherence has been deployed as a jar incorporated into a Java application (e.g., WAR or standalone Java application) along with a tier of standalone cache server JVMs (often using the DefaultCacheServer class). The embedded java usages (such as in a WAR) are referred to as clients and the standalone cache servers are referred to as servers. The lifecycles of the “clients” and cache servers are managed separately, often manually, with the cache servers managed by custom shell scripts. Application development and deployment in this model can be a complicated process involving many moving parts that require custom management processes.

Within the new model, the artifacts required to run Coherence based applications, such as POJO's, server side logic and cache configuration are packaged into a GAR.  This mirrors to a large degree the structure of other Java EE artifacts such as Web Archives (WAR).  This GAR can be deployed and managed in the same using the standard WebLogic Server tools such as:

  • Admin Console
  • WLST 
  • WebLogic Deployer
  • WebLogic Development Maven Plugin 

The Coherence cluster's operational configuration and structure is defined within the Admin Console, or via WLST. You can then take advantage of the traditional WebLogic Server constructs such as Clusters (not to be confused with the new Coherence Cluster artifact), to build a tiered application architecture that might include a data tier, application tier, and proxy tier.  The Coherence configuration is targeted to those WebLogic Server Clusters and Managed Servers that are assigned to those WebLogic Server Clusters inherit the operation configuration by being members of those WebLogic Server Clusters.  You can then deploy Coherence based applications, (EARs, GARs) to clusters and they will be automatically deployed to all members of the cluster.

Please see the Oracle Coherence YouTube Channel for more in-depth videos and demonstrations of Managed Coherence Servers.

Running The Sample Application

When you download WebLogic Server 12c and complete the full install, there is a sample application and sample WLST scripts that you can use to get familiar with the new feature. I'll explain the steps to do this below.

Downloading WebLogic Server and a supported JDK 

Firstly you need to download WebLogic Server 12c from Oracle Technology Network.  You can download the "Generic WebLogic Server and Coherence Installer" or the specific installer for your operating system. If you choose to download the generic installer you must download a certified JDK as well. See here for detailed installation information.

In my example I downloaded the latest  "Java SE Development Kit 7u25" available here.

Installing WebLogic Server

For my example, on Windows 7, I ran a command prompt as administrator, set my JAVA_HOME to my installed JDK and ran the installer.

Starting the installer

Click Next on the "Welcome Screen", and choose C:\Oracle\Middleware (or appropriate directory) as install location. Click Next to continue.

On the next screen ensure you select Complete Install as this will install the examples as well. Select Next to continue.

Continue through the installer and after the installation is completed, ensure the "Automatically Launch the Quickstart Configuration Wizard" check-box is checked, and click Finish.

When the Config Wizard starts, choose a a password, such as welcome1, and click Create to configure the examples.

After the creation is complete, you don't need to start the domain for these examples. 

Viewing the Examples Home Page

Open the index.html file in the examples home directory. For my install the home directory was c:\Oracle\Middleware\user_projects\applications\wl_server\index.html. This page is the home for all WebLogic Server examples. You can select the Managed Coherence Servers Examples link to view the examples. 

There are a number of examples showcasing the new functionality. If your machine doesn't have too much memory, e.g, 4GB or less you can follow the instructions in the Single Server example which will deploy only to a single Admin Server.  Below, I will explain how to run the Multi Server example which uses a tiered approach.

Running the Multi-Server Example

Open a command prompt and set your WebLogic Server environment by using the setWLSEnv.cmd/ in your installation. For my install the location of setWLSEnv.cmd is C:\Oracle\Middleware\wlserver\server\bin.

Next change to the examples home directory. This is a nice long directory, but in my install the location was C:\Oracle\Middleware\user_projects\wl_server\examples\src\examples\coherence\managed-coherence-servers

Under this directory there are a number of directories, but as we are going to run the multi-server example, change to the multi-server directory.

Next type ant deploy to build and install the application. If ant is not found, ensure you have correctly run setWLSEnv.cmd/sh. After the compilation has completed answer the prompts to enter a password (note this will be displayed in clear text) and hostname for your machine. You can leave the other ports as defaults.

The build process will create a new domain called multi_domain with a data tier and app tier and deploy the application to this domain. 

On completion, you can then access the URL shown above and run the sample JSP application, shown below.  You can also access the Admin console to view the applications and configuration that was created.


There are other examples available in the same location showing you how to carry out a rolling redeploy and thread-dump of all managed servers using WLST.

See the following links for more information on Coherence 12.1.2 and Managed Coherence Servers. 

Hope you enjoy the new functionality!


Oracle Coherence, the market leading in-memory datagrid product.
Stay Connected...


« June 2016