Coherence 12.2.1.3 Released

Overnight Coherence (and Oracle Fusion Middleware) 12.2.1.3 was released.

In terms of Coherence, this release contains a number of new features:

  • Revised Active-Active Federation Configuration – The new <active-active> configuration element is now used to define active-active federation topologies.
  • Global Consistent Snapshots – A snapshot can be now be created either on a running service (a service that is accepting and processing requests) or on a suspended service. The former provides consistency at a partition level while the latter provides global consistency – See the Persistence Documentation for more information.
  • HotCache Enhancements include:
    • HotCache multi-threading – HotCache can use multiple threads to apply trail file operations to Coherence caches.
    • HotCache Multitenant mode – HotCache can refresh caches for specific tenants.
    • HotCache JMX management – HotCache includes management data for monitoring the performance of cache update operations. This also includes a new tab in the JVisualVM plugin to display HotCache information.

You can find the documentation and release notes at http://docs.oracle.com/middleware/12213/coherence/index.html.

Enjoy!

Advertisements
Posted in News | Tagged , , , , | Leave a comment

Introducing Application Cache Client Java SDK for Oracle Cloud

Just back from an awesome vacation in far north Queensland and now catching up on 500+ emails!  One email I came across is that that the Oracle Application Container Cloud (ACCS) Application Cache Java SDK has now been released on GitHub.

For full details on this (and how Coherence is powering this behind the scenes), please see Shaun Smith’s post:

https://blogs.oracle.com/developers/introducing-application-cache-client-java-sdk-for-oracle-cloud

 

 

 

Posted in News, Uncategorized | Tagged , , , , | Leave a comment

Cloud Ready: Introduction to Distributed Streams

A couple of weeks ago, one of our Coherence Architects, Brian Oliver, gave a great presentation at “Oracle Code 2017”. I wasn’t able to get there, but fortunately we have a recording available on Youtube which is well worth the view – https://www.youtube.com/watch?v=9yt43EIDJmg.

The summary of his presentation is below:

“This talk interactively introduces the concept of Distributed Stream processing using the standard Java 8 Streams API, allowing what would traditionally be in-process streams to be processed across multiple Java processes, potentially deployed in a Cloud. We thus investigate how the regular Java Stream API may be utilized to process large data-sets and respond to streams of events, highlighting the challenges for developers, those providing support for distributed streams and the operational challenges faced using such techniques in production.”

Posted in Presentations, Screencasts | Tagged , , , , | Leave a comment

Updated Cover Photo

We’ve updated our cover photo to a beautiful sunset on Broome’s Cable Beach.  If you’ve never been there, it’s amazing and worth a trip!

http://www.australia.com/en/places/wa/cable-beach.html

Posted in Uncategorized | Leave a comment

Happy New Year – Federation and HotCache Updates in 12.2.1.2

Been a while since i’ve managed to post here due to some heavy workloads and the usual Christmas and new year break, but am planning to squeeze in some time for Coherence released posts.

In October (yes last year!) we released 12.2.1.2 of Coherence and WebLogic Server. From the Coherence side, this contained a few new features for HotCache but also included a small but significant update for Federation.

Federation

Federation now includes the ability to include custom participants into your topology. Up until now the only “Participants” allowed were Coherence Clusters. Custom participants allow you to define end-points such as files, databases, message bus or any other target you want to.

If you are using the Incubator’s “Push Replication Pattern”, then the addition of custom participants can assist in migrating from Push Replication to Federation. Keep your eyes out for a post on this coming up soon.

HotCache

With this release HotCache includes the following new features:

  • HotCache can be used to warm caches by loading an initial dataset.
  • Support for Oracle SDO_GEOMETRY and XMLType types
  • Configuration has been made easier with ability to use JPA properties to configure  behavior.

 

See the Federation Documentation for more information on custom participants and Release Notes for information on HotCache new features.

 

Posted in News, Uncategorized | Tagged , , , | Leave a comment

JavaOne 2016 Recorded Sessions

If you are like me and were not able to get to JavaOne this year, then please see below for some links to a number of the presentations and sessions.

For the full list of JavaOne 2016 session see here.

 

Posted in News | Tagged , , , | Leave a comment

Replicating HTTP Sessions across Data Centers

Introduction

As explained in a previous post, Coherence*Web is a great feature which allows you to store your HTTP sessions in a Coherence Cluster. Since Coherence introduced Federation in 12.2.1, it has been possible to federate the HTTP session stored in Coherence*Web. This allows applications to replicate HTTP Sessions across data centers, which can tackle scenarios where-in an entire data-center goes down.

The last post on Easier configuration of Federated Caches explained how easy it is to configure federation in a WebLogic Server (WLS) domain. This post will build on that and explain how to extend that approach to federate HTTP sessions as well.

Solution

The first 2 steps for using Federated HTTP session using Coherence*Web is same as explained in Step 1 and Step 2 under the Setup section. Once 2 WLS domains have been installed and configured to use Federation as explained in those steps, the following settings need to be carried out.

Enable Coherence*Web federated session storage

Navigate to the Coherence settings tab of the DataTier WLS Cluster and enable the “Coherence Web Federated Storage Enabled” check-box as shown below

oie_s3OC4PC0TbYL.png

Deploy a web application

Deploy a web application onto the ClientTier WLS cluster. There are 2 configurations required to enable Federated HTTP sessions. They are

Enable Coherence*Web in the web application. This is done by configuring Coherence*Web as the session persistence type in weblogic.xml file of the web application as shown below

weblogic_xml.png

Set the coherence-session-cache-federated context parameter in the web.xml of the web application, as shown below

cwebcontextparam.png

After making the above changes, deploy the web application and navigate to the URL of Site1. Add some entries in the HTTP session. Now use the same HTTP Session to connect to Site2 and validate that the changes done in Site 1 is available.

Using the same HTTP Session

HTTP Sessions are based on Cookies which are exchanged between the Browser and the Server. Once an HTTP session is created, server sends back a session cookie(JSESSIONID is the default cookie name in WebLogic) to the Browser. Browser sends the same cookie back to the server in the subsequent requests. Server validates the cookie that it receives i.e. it checks if the cookie being sent is an existing and valid cookie. In case of Coherence*Web, server checks if the session as provided in the cookie exists in the session cache.

Browser will send the cookie back in the subsequent requests only the host-name of the next request matches that of the previous request. In typical deployments, there will be a load-balancer which sits in front of the managed server of both sites, so that even if a Site goes down, the load-balancer will point the next HTTP requests to the site which is available. We will not cover that topic here, but in-turn suggest a simple way to simulate such a set-up.

Let us assume that host.site1.oracle.com is the hostname of the managed server on Site1 and it IP address is host-site1-ip-address. Similarly host-site2-ip-address will be the IP Address of Site2 managed server. In the hosts file(/etc/hosts in linux), add an entry as follows

host-site1-ip-address webapphost

and access the web application using a browser using “webapphost” as the hostname (Please switch off any proxies in the system for this browser session). Execute some actions in the web application such that the session has some data populated. Keep the browser session open and change the entry in the hosts file as below

host-site2-ip-address webapphost

Refresh the browser session(use ctrl + F5 so that browse refreshes the pages). The next request will go to the managed server of Site2, and the session details should still be available. For example, if the web application was a shopping cart application and you had added some entries in the shopping cart, the shopping cart must be the same when you access the managed server of Site2.

Example Web Application

The attached web application can be used as a sample application to test the set-up. The web application is already Coherence*Web federation enabled as explained above, and can be deployed to the ClientTier WLS clusters of Site1 and Site2 domains. You can use the same script provided in the previous blog if you want to generate such a set-up.

Once the web application is deployed, as explained in “Using the same HTTP Session” section above, make the necessary changes in the hosts file and open the following URL in the web application

http://webapphost:7007/shoppingcart/shopping.jsp

and add some entries in the cart. Change the hosts file to point to Site2 IP Address and then refresh the browser (use ctrl + F5 so that the page is refreshed properly) and navigate to the shopping cart. You should see the items that have been added in the first request, still part of the shopping cart.

JVisualVM

The Coherence JVisaulVM plugin can be used to monitor federation related metric as explained here. The Coherence*Web federated session cache can also be monitored using JVisualVM. Sample screenshot is shown below:

cweb-jvisualvm.png

Posted in Uncategorized | Leave a comment