Configure Coherence HotCache

Coherence can really accelerate and improve your application because it's fast, high available, easy to setup and it's scalable. But when you even use it together with the JCache framework of Java 8 or the new Coherence Adapter in Oracle SOA Suite and OSB 12c it will even be more easier to use Coherence as your main HA Cache.  Before Coherence 12.1.2 when you want to use Coherence together with

WLST script for listing WebLogic Server memory usage

Here is a short script for listing Java heap usage for all WebLogic Servers in a domain.

domainRuntime()

servers = domainRuntimeService.getServerRuntimes();
print('################################################################')
print('# Java heap information per server')
print('################################################################')
print('%20s %10s %8s %8s %4s' % ('Server','Current','Free','Max','Free'))
for server in servers:
   free    = int(server.getJVMRuntime().getHeapFreeCurrent())/(1024*1024)
   freePct = int(server.getJVMRuntime().getHeapFreePercent())
   current = int(server.getJVMRuntime().getHeapSizeCurrent())/(1024*1024)
   max     = int(server.getJVMRuntime().getHeapSizeMax())/(1024*1024)
   print('%20s %7d MB %5d MB %5d MB %3d%%' % (server.getName(),current,free,max,freePct))

disconnect()
exit()

Execute (more...)

The Oracle SOA Suite and the OSB are now free for developers!

I did not notice it myself but over Christmas Oracle made the SOA Suite and the OSB free for developers.

I found out via the January issue of the Oracle SOA Partner Community Newsletter, issued by
Jürgen Kress. You can sign-up for the newsletter here: http://www.oracle.com/goto/emea/soa.

You can download most Oracle FMW software for free on the OTN download site. Although you do not have to pay to download the software, it is (more...)

Upgrading EM12c to 12.1.0.3: Active Directory Authentication Quirks

We recently upgraded our EM12c 12.1.0.2 installation to 12.1.0.3. This service was configured to authenticate logins against our Active Directory server via LDAP. However, after upgrading we found that authentication stopped working, even after recreating the Active Directory Authenticator (as required). I could see the list of users from AD, but could not authenticate them in EM!

In this post I'm going to share what we did to diagnose (more...)

REST, SSE or WebSockets on WebLogic 10.3.6

WebLogic 10.3.6 comes with Jersey1.9 and has no support for Server Side Events or WebSockets. But for one of our projects we are making a HTML5 / AngularJS application, which need to invoke some RESTful services and we also want to use of SSE or WebSockets. Off course we can use WebLogic 12.1.2 but we already have an OSB / SOA Suite WebLogic 10.3.6 environment. So when you want to pimp your

UKOUG Tech13 WebLogic Hackathon

Yesterday we conducted the SuperSunday WebLogic Hackathon at the UKOUG Tech13 conference.

It went well and people looked like they had a pleasant time.

I have enjoyed preparing for the event. The team contained a Brit, a Dutch, a Swiss and a Dane. It has been very motivating meeting people (more...)

new Puppet 3 Weblogic provisioning module

The last few weeks I was busy re-writing of my puppet WLS module so it fully supports the power of Puppet 3 (thanks for more than 4000 downloads on puppet forge and all the github downloads). With Puppet 3 we now can use Hiera, Iterations and Lambdas expression. This does not (more...)

UKOUG Tech13 WebLogic Hackathon


This year’s UKOUG Tech13 conference is kicking off with a free SuperSunday event.

You can choose between 7 streams:

  • Hands on Engineered Systems
  • Analytics – Pulling the Threads Together
  • Database Technology 1 & 2
  • Real World Lessons from ADF Ninjas
  • Extending APEX out of the Box
  • WebLogic Hackathon

The best and most interesting is of course the WebLogic Hackathon ;-)

I have been working with a great group of people to prepare the WebLogic Hackathon:

The road ahead for WebLogic 12c

Before we can describe all the new features of WebLogic 12.1.3 & 12.1.4 and compare this to the 12.1.2 version we should first take a look at the 10.3.6 version. WebLogic 10.3.6 is still the latest 11g version but Oracle (more...)

WebLogic Server and entropy

After input from Jacco H. Landlust and Edwin Biemond I have rewritten my post about entropy.

Overview

Entropy pool

In computing you often need random numbers. They are used for encrypting stuff but also for lots of other things.

For Linux servers random numbers are default provided by the /dev/random device. /dev/random is a pool of random bits (more...)

Using opatch to list valid FMW Homes to apply a patch to

All FMW products except the WebLogic server is patched via the opatch tool. From FMW 12.1.2 the WebLogic server is also patched by opatch.

In a FMW installation you can have many Oracle Homes. When you install a patch you need to know which home to apply the patch to.

opatch can help you figure out where to install the patch.

I have a Forms installation that I need to apply a patch (more...)

Bash script for installing WebLogic Server PSU patches via BSU

Patching WebLogic is necessary but not fun. To help out I have created a simple Bash script for installing CPU/PSU patches.

For information about CPU, PSU and SPU patches check this post.

The script is using BEA Smart Update so it is for WebLogic Server 12.1.1 and older. WebLogic Server 12.1.2 has switched from BSU to OPatch.

#!/bin/bash
# ---------------------------------------------------------------------------
# cpuPatch.sh
# Peter Lorenzen
# Version 0.9
 (more...)

WebLogic Server – Using JDBC TLOG Store

From WebLogic Server 10.3.6 and onwards it is possible to store JTA transaction logs (TLOG) in a database persistent store instead of in a file store.

Overview

Bash script for listing running WebLogic Servers and Node Managers

If you have many domains running on the same Linux server it can be difficult to see what is running and what is not. I have created a Bash script that lists all WebLogic Server and Node Manager processes.

I have tested it on Red Hat 5 and 6.

Here (more...)

WebLogic Server – Max Restarts Within Interval

In some situations you have to restart a WebLogic server many times to get something working. A quick and dirty way of restarting a server is to kill the process and let the Node Manager start it up again.

When you kill the process you will see this in the (more...)

Upgrading WebLogic domains

I noticed that in WebLogic 12.1.2 the old domain Upgrade Wizard has been replaced by a new Reconfiguration Wizard.

I have upgraded WebLogic many times, but I have never upgraded a domain.

If you upgrade WebLogic within a major release e.g. 10.3.5 => 10.3. (more...)

WebLogic Server configuration backup

The WebLogic server stores its configuration in files in the DOMAIN_HOME/config directory. The main file being config.xml.

The way configuration changes are handled depend on if you are using the domain configuration locking feature. In Production Mode configuration locking is enabled by default and in Development Mode it is (more...)

Custom Jersey WADL generation

I had a situation where the auto generated WADL did not match with my Rest services. The first difference was that the response is presented as an object instead of a collection of objects and the second one is that it could not handle JSONWithPadding as response.  Because I use (more...)

Coherence 12.1.2 Rest application build with OEPE

With WebLogic 12.1.2 Oracle also released a new version of Coherence and OEPE. The 12.1.2 release contains many new Coherence features like WebLogic Managed Coherence Servers and Coherence Grid Archive ( GAR ) which can be included in an normal EAR. Coherence also has some nice (more...)

FMW 12.1.2 – beahomelist, Central Inventory, Registry and Distributions

beahomelist

In previous versions of the WebLogic server an beahomelist file was created that contained the paths to the installations aka. the Middleware home’s.

Location:
(UNIX) user_home/bea/beahomelist
(Windows) C:\bea\beahomelist

cat beahomelist
/u01/app/oracle/product/fmw;/u01/app/oracle/product/wls;/u01/app/oracle/product/adf;/u01/app/oracle/product/osb

When you deinstall a WebLogic server the path is not removed from beahomelist, but next time you install (more...)