Saturday Jun 13, 2015

WebLogic Server on Linux 7 by René van Wijk

clip_image002In this post, we will set-up a WebLogic Server environment on Linux 7 hosts; Show how to create systemd unit files for the Node Manager and the Apache HTTP Server (that contains the WebLogic Server Proxy Plug-In); See how automation tools, such as Ansible, can be made operating system version aware such that the same configuration can be used for multiple operating system distributions; Finally, we will test the environment.
And yes, WebLogic Server is supported on Linux 7 - just take a look at the certification matrix. Here, we see that WebLogic 12.1.3 with Oracle JDK 1.8.0_20+ is certified on Linux 7 (Oracle Linux 7 and Red Hat Enterprise Linux 7).

Creating virtual machines

The steps to create a virtual machine are as follows

  • Open VMWare WorkStation and click file, new virtual machine.
  • Choose custom and click next.
  • Choose a certain virtual machine hardware compatibility. In this case we choose Workstation 11.0. Click next.
  • Choose I will install the operating system later. Click next.
  • Select the guest operating system. In this case we choose Linux and set the version to CentOS 64-bit.
  • Click next and enter the following parameters:
    • virtual machine name: machine1dotcom
    • location: C:\temp\VirtualMachines\machine1dotcom
  • Click next.
  • Choose the number of processors, for example one processor with four cores, and click next.
  • Configure the amount of memory for the virtual machine, for example 4096MB, and click next.
  • Select the network type, for example network address translation (NAT), and click next.
  • Select the I/O controller type (choose the recommended type) and click next.
  • Select the virtual disk type (choose the recommended type) and click next.
  • Select create a new virtual disk and click next. This article provides information on increasing the size of a virtual disk. This procedure is necessary to accommodate data requirements that have changed since the creation of the virtual disk.
  • Enter the disk capacity, for example 20GB, select split virtual disk into multiple files and click next.
  • Enter the name for the disk file and click next.
  • Click finish
  • After the virtual machine is created click edit virtual machine settings

Read the complete article here.

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.

Blog Twitter LinkedIn Forum Wiki

Thursday Apr 02, 2015

Coherence, WebLogic and Java SE 8 by René van Wijk

clip_image002

In this post we will explore some new Java SE 8 features,

  • Lambda Expressions enable us to treat functionality as a method argument, or code as data. Lambda expressions let us express instances of single-method interfaces (referred to as functional interfaces) more compactly. The Java SE 8 API also ships a lot of new functional interfaces to make our life easier.
  • Method references provide easy-to-read lambda expressions for methods that already have a name.
  • Default methods enable new functionality to be added to the interfaces of libraries and ensure binary compatibility with code written for older versions of those interfaces.
  • Classes in the new java.util.stream package provide a Stream API to support functional-style operations on streams of elements. The Stream API is integrated into the Collections API, which enables bulk operations on collections, such as sequential or parallel map-reduce transformations.

and see how these work out on WebLogic and Coherence. Note that WebLogic 12.1.3 and Coherence 12.1.3 are supported on Java SE 8, with the following restrictions:

  • WebLogic Server 12.1.3 does not support applications using the Java SE 8 fork/join and parallel streams features. Avoid these features when building WebLogic Server 12.1.3 applications using Java SE 8. The reason for this restriction is that the threads used by the fork/join thread pool will not be WebLogic Server managed threads. Any of the work performed in these threads may not be able to make use of WebLogic Server or Java EE facilities because the state of these threads, including security and transaction state, may not be created properly. Further, these threads will not be controlled by WebLogic Server Work Manager thread management facilities, possibly resulting in excessive thread usage.
  • When using Java SE 8, the use of permgen-memory is no longer required. The Java command line options -XX:PermSize and -XX:MaxPermSize are ignored: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0.
  • Java SE 8 has new APIs for JDBC 4.2 and is supported for WebLogic Server 12.1.3 running on Java SE 8 with a JDBC driver that supports JDBC 4.2. However, although the Oracle JDBC thin driver bundled with WebLogic Server is certified on Java SE 8, the Oracle JDBC thin driver does not support JDBC 4.2.
  • When running using SSL connections with JCE on JDK 8, it may be necessary to install the Java Cryptography Extension Unlimited Strength Jurisdiction Policy Files 8.

As an example, we will use the application presented in the post Coherence 12c Grid Archive. To include some Java SE 8 features, we rewrite the servlet as (in which we also use parallel streams, although not supported, but just out of curiosity to see what goes on in the Java runtime). Read the complete article here.

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.

Blog Twitter LinkedIn Forum Wiki

Thursday Dec 04, 2014

Whole Server Migration by Rene van Wijk

clip_image002In a WebLogic Server cluster, most services are deployed homogeneously on all server instances in the cluster, enabling transparent fail-over from one server instance to another. In contrast, for 'pinned services' such as JMS and the JTA transaction recovery system are targeted at individual server instances within a cluster, WebLogic Server supports failure recovery with migration, as opposed to fail-over.
Migration in WebLogic Server is the process of moving a clustered WebLogic Server instance or a component running on a clustered server instance elsewhere in the event of failure. Upon failure, a migratable server is automatically restarted on the same machine, if possible. If the migratable server cannot be restarted on the machine where it failed, it is migrated to another machine. In addition, an administrator can manually initiate migration of a server instance.

Configure whole server migration

Before we configure whole server migration, we need to know the requirements:

  • The migratable server candidate machines have to be in the same subnet (because the virtual IP address must be valid on each candidate machine). Whole server migration uses a virtual IP address for each migratable server.
  • On each candidate machine, the Node Manager must be initialized such that it can accept commands from the Admin Server.
  • The Node Manager is used to migrate the virtual IP address and assign it to the target machine (i.e., invoke ${DOMAIN_HOME}/bin/server_migration/wlsifconfig.sh addif or invoke ${DOMAIN_HOME}/bin/server_migration/wlsifconfig.sh removeif). Note that the default configuration assumes that the machines are similar, i.e.,
    • The netmask associated with the virtual IP is the same on each candidate machine.
    • The network device (interface) name (for example, eth0 on Linux) is the same on each candidate machine.
    • The functional behavior of the platform-specific OS command used to add and remove the virtual IP (for example, ifconfig and arping on Linux) is the same.
  • Migratable servers cannot define any network channels that use a Listen Address different from the virtual IP address associated with the server. If servers must use multiple network channels associated with multiple IP addresses, whole server migration cannot be used as only migration of a single virtual IP address for each migratable server is supported.
  • Server-specific state must be shared through some highly available sharing mechanism, i.e., the default persistent stores where the XA transaction logs are kept must be accessible on each candidate machine.

As mentioned above the Node Manager invokes the script wlsifconfig.sh to run ifconfig and arping commands (more information on these commands can be found here), for example, Read the complete article here.

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.

Blog Twitter LinkedIn Forum Wiki

Wednesday Feb 26, 2014

Automatic Scaling an Application using WebLogic by René van Wijk

Say we want to add (or start) managed server instances when running an application, for example, when the number of open sessions reach a certain value. For this value we have calculated that the memory consumption is beyond a level, such that the garbage collection is affected. By adding (or starting) a new server we balance the load (the number of sessions with its corresponding memory consumption) across multiple servers. By using the WebLogic Diagnostic Framework, we can collect the metrics we need and create a watch for that metric with a corresponding notification. By using this notification we can then further create the logic needed in order to add (or start) a managed server. For example, by using the notification service that come with the WebLogic Diagnostic Framework we can send a JMS message or a JMX notification. In this post we are going to use the JMS approach. Environment The WebLogic environment consists of a cluster, spanning two machines, and consisting of four managed servers. This can be easily set-up by using the scripts presented in the post Automate WebLogic 12.1.2 Deployment. The diagnostic module is configured as follows - See more at: Read the complete article here.

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.

Blog Twitter LinkedIn Mix Forum Wiki

Technorati Tags:

Thursday Feb 20, 2014

Automatic Scaling an Application using WebLogic by René van Wijk

Say we want to add (or start) managed server instances when running an application, for example, when the number of open sessions reach a certain value. For this value we have calculated that the memory consumption is beyond a level, such that the garbage collection is affected. By adding (or starting) a new server we balance the load (the number of sessions with its corresponding memory consumption) across multiple servers. By using the WebLogic Diagnostic Framework, we can collect the metrics we need and create a watch for that metric with a corresponding notification. By using this notification we can then further create the logic needed in order to add (or start) a managed server. For example, by using the notification service that come with the WebLogic Diagnostic Framework we can send a JMS message or a JMX notification. In this post we are going to use the JMS approach. Environment The WebLogic environment consists of a cluster, spanning two machines, and consisting of four managed servers. This can be easily set-up by using the scripts presented in the post Automate WebLogic 12.1.2 Deployment. The diagnostic module is configured as follows - See more at: Read the complete article here.

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.

Blog Twitter LinkedIn Mix Forum Wiki

Monday Feb 03, 2014

Automate WebLogic Installation and Configuration by René van Wijk

In this post, we will show how to create automation scripts in order to set-up middleware environments.

Preparation

As an example, we will use the Oracle Service Bus. In the example, we will use the following software

First, we have to decide how the directory structure will look, for example.

Installation

To silent install JRockit, we need the following XML file - See more here!

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.

Blog Twitter LinkedIn Mix Forum Wiki

Monday Nov 18, 2013

Setup a 12c Fusion Middleware Infrastructure by René van Wijk

In this post, we will show how to create automation scripts in order to set-up middleware environments.

Preparation
In the example, we will use the following software Oracle JDK Fusion Middleware Infrastructure (fmw_infra_121200.jar) which can be obtained from the Oracle Software Delivery Cloud.

Oracle HTTP Server (ohs_121200_linux64.bin) which can be obtained from the Oracle Software Delivery Cloud.

First, we have to decide which directory structure we are going to use. Below an example is given in which the binaries (that create the run-time) are separated from the configuration. - See more.

Installation To install a Fusion Middleware Infrastructure (that uses Oracle JDK as the Java Virtual Machine) we can use the following script - See more. Read the full article here.

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.

Blog Twitter LinkedIn Mix Forum Wiki

Thursday Sep 26, 2013

Session Management using WebLogic12 by René van Wijk

In this post we take a look at WebLogic session management. We will take a look at Coherence*Web, and see how things have simplified in WebLogic 12.1.2 when compared to WebLogic 12.1.1. We use the Java 7 Flight Recorder to analyze some WebLogic diagnostics. To persist sessions we have the following options.

  • In-memory replication – node that Web applications which have persistent store type set to replicated or replicated_if_clustered will have to be targeted to the cluster or all the nodes of that cluster. If it is targeted to only some nodes in the cluster, the Web application will not be deployed. In-memory replication requires that Web applications be deployed homogeneously on all the nodes in a cluster.
  • JDBC-based persistence – WebLogic maintains the HTTP session state using file-based or JDBC-based persistence. Coherence*Web – a remark from the documentation: “
  • Coherence*Web is not a replacement for WebLogic Server’s in-memory HTTP state replication services. However, you should consider using Coherence*Web when an application has large HTTP session state objects, when running into memory constraints due to storing HTTP session object data, or if you want to reuse an existing Coherence cluster.” To configure a persitent type set the persistent Read the full article here.

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.

Blog Twitter LinkedIn Mix Forum Wiki

Wednesday Aug 21, 2013

Fun with Enterprise Manager for WebLogic by René van Wijk

Oracle Enterprise Manager is Oracle’s integrated enterprise information technology management product line, which provides a complete, integrated, and business-driven enterprise cloud management solution. Oracle Enterprise Manager creates business value from IT by leveraging the built-in management capabilities of the Oracle stack for traditional and cloud environments, enabling customers to achieve unprecedented efficiency gains while dramatically increasing service levels. The key capabilities of Enterprise Manager include:

  • A complete cloud lifecycle management solution enabling you to quickly set up, manage, and support enterprise clouds and traditional Oracle IT environments from applications to disk.
  • Maximum return on IT management investment through the best solutions for intelligent management of the Oracle stack and engineered systems with real-time integration of Oracle’s knowledge base with each customer environment.
  • Best service levels for traditional and cloud applications through business-driven application management.

Tuning

After installing and configuring enterprise manager it might be beneficial to tune the environment. To tune the agent, navigate to the${AGENT_HOME}/agent_inst/sysman/config directory. Open the file emd.properties and edit the agentJavaDefines property, set the memory parameters for the Java Virtual Machine to, for example, Set extra tuning parameters for the Java Virtual Machine in the s_jvm_options.opt file, for example: Read the full article here.

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.

Blog Twitter LinkedIn Mix Forum Wiki

Wednesday Mar 06, 2013

Coherence and WebLogic by René van Wijk

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:
    /home/weblogic/weblogic12.1.1/installation/modules/features/weblogic.server
    .modules.coherence.server_12.1.1.0.jar:
    /home/weblogic/weblogic12.1.1/configuration/applications/base_domain/security/test.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
    -Dtangosol.coherence.management.remote=true

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.

BlogTwitterLinkedInMixForumWiki

Monday Aug 06, 2012

WebLogic & Glassfish training by Axis in Utrecht, Netherlands

AXIS and Oracle partner in the Netherlands offers WebLogic 12c trainings. René van Wijk an WebLogic guru will run this training:

Schedule:

  • 13-15September 2012
  • 30 October – 1 November 2012
  • 19-21 November 2012

For registration and details please visit the AXIS page.

image

WebLogic Partner Community

Let us know if we can promote your local training! 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.

Blog Twitter LinkedIn Mix Forum Wiki

Search

Archives
« July 2015
SunMonTueWedThuFriSat
   
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
       
Today