In the current days , even with the new ideals about agile metods and various attempts to put together infraestructure and development (DevOps) we still have so much codes that had the development with a great distance of the machines and S.O.
In this scenario, a lot of exceptions are found in the application logs, but the majority can’t be considerated the problem in fact.
This Post is related to an exception that occurs when a BusinessService in an Oracle Service Bus flux was configured to use a Result cache service, instead to call an external service,
why do we have an exception when calling the result cache? -Because the result cache was not configured on the Weblogic server.
com.bea.wli.sb.service.resultcache.ResultCacheException: An unexpected exception was thrown while using the result cache:
Let’s configure weblogic result cache (Coherence)!
For this lab, will used two machines and two managed servers on a cluster.
First, let’s create two coherence servers, one for each machine:
For each coherence server we must set one lib and one module in the classpath, this box is found in “Start Server” page on the Coherence Server.
In the same page, we need to configure the box “Arguments:” to define coherence hosts and ports.
Attention to fill properly ‘localhost’: For the coherence server1 the localhost value is machine01, to the coherence server2 the value for localhost is machine2.
After settting up the two coherence server, let’s create a coherence cluster, the target must to be the managed servers or Weblogic server Cluster:
After setting up coherence cluster, set the new cluster on each coherence Server.
The last step is to configure coherece Server parameter on each managed server. In Box “Arguments”, which is on page “Start server” on each managed server.
Again, attention to fill properly ‘localhost’: For the Managed server1 the localhost value is machine01, to the Managed server2 the localhost value is machine2.
To validate the settings , start the coherence servers, and wait to RUNNING status. Celebrate with a good wine!