Developer Partner Community

  • March 6, 2013

Coherence and WebLogic by René van Wijk

Juergen Kress
PaaS Partner Adoption

In this post, we configure WebLogic and an in-memory data grid, such as Coherence and present scripts to start and stop the environment. We start with creating a Coherence Server (which will be our storage enabled node in the cluster). You can find the steps required to create a Coherence Server here.René van Wijk

When the server is created, click on the created server and subsequently on the server start, configuration tab, in order to set the class path and some JVM parameters.

Enter the following properties:

  • Java Home: Specify the location of the JDK installation directory such that /bin/java exists, in our example we will use /home/weblogic/jrockit-jdk1.6.0_29-R28.2.2-4.1.0
  • Java Vendor: Oracle
  • Class Path: /home/weblogic/weblogic12.1.1/installation/coherence_3.7/lib/coherence.jar:
  • Arguments: -jrockit -Xms256m -Xmx256m -XXkeepAreaRatio:25 -Xgc:pausetime -XpauseTarget:200m
    -XX:+UseCallProfiling -XX:+UseLargePagesForHeap -Dtangosol.coherence.mode=prod
    -Dtangosol.coherence.cacheconfig=security-cache-config.xml -Dtangosol.coherence.management=all

Above, we have specified the class path to included coherence.jar and \weblogic.server.modules.coherence.server_12.1.1.0.jar, which are needed to make Coherence available. The test.jar contains our Coherence configuration and serializable classes. These are presented in the post. JBoss RichFaces, Facelets and Coherence on WebLogic.
Note: The JVM parameters also included Coherence system settings, such as, -Dtangosol.coherence.mode=prod and -Dtangosol.coherence.cacheconfig=security-cache-config.xml. With the first one, we tell Coherence to run with production settings. The second one defines the cache configuration file to use. Unfortunately, the configuration provided in a Coherence override is not picked up. Read the full article here.

WebLogic 12c technical information: Java Message Service & Java Extensions & best practice upgrade

  • 3 Things You May Not Know about Java Message Service on Oracle WebLogic Server - Watch the replay now.
  • Java Management Extensions with Oracle WebLogic Server 12c - Watch Now
    Benefits, Strategies, and Best Practices for upgrading to Oracle WebLogic Server - Watch Now

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.


Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.