Business Application Server Configuration

It is possible for the business application server’s logic to be separated from the Web Application Server component. Essentially, your application has been split into TWO distinct EAR files:

There are two modes of installation:

Figure 6-6 Installation Modes

Diagram that shows the two Installation Modes: Local and Decoupled.

Business Application Server Concepts

As previously mentioned, the Business Application Server component can be deployed within a separate instance of the JEE Web Application Server software. This effectively allows the business application server to be on separate hardware for architectures where this is a requirement. Typically this separation is implemented for a number of reasons:

  • The site has an architectural principle for separating the web and the business application servers.
  • The site prefers to optimize the individual servers for the individual tiers rather than having to compromise when two or more tiers are on the same platform.

The Business Application Server was designed to fit within the same concepts as the Web Application Server. The main differences are:

  • Enterprise Java Beans (stateless) are used in the business application server instead of the Java Server Pages, which are used in the web application server. The name of the EJB is spl-servicebean-<version>.jar (where <version> is the version of the product, for example: 2.0.0).
  • Database connectivity is configured in the business application server.

The rest of this section will outline the differences specifically for the business application server.

Business Application Server Configuration Files

Each JEE web application within the JEE web application server has its own configuration files. These files are typically embedded within the WAR/EAR files deployed with the product following the JEE specification (refer the discussion of allowing the externalization of configuration settings for alternative methods). In terms of configuration, your application’s structure within the WAR/EAR file is as follows:

Configuration Files Content
ejb-jar.xml - Enterprise Java Server Beans Configuration Enterprise Service Bean configuration
hibernate.properties - Database Connectivity Settings Database connectivity
log4j2.properties – Product Logging Configuration Logging configuration
spl.properties – Product Behaviour Settings Behavior configuration
web.xml – JEE Deployment Descriptor Deployment Descriptor
weblogic.xml – Oracle WebLogic Extensions WebLogic extensions
weblogic-ejb-jar.xml - WebLogic Extensions for Enterprise Java Server Beans WebLogic extensions for Enterprise Service Bean configuration

Business Application Server Configuration Process

To configure the business application server during the installation process and post-installation then the following process should be used:

Figure 6-7 Business Application Server Configuration Process

Figure that shows the structure of the Business Application Server Configuration Process.

At this point the product business applications are ready for deployment into the Oracle Weblogic Domain.

Quick Reference Guide for Business Application Server Configuration

To make configuration changes to the business application server component, use the following Quick Reference Guide to identify which process should be used:

  • If the change is to any setting contained in the ENVIRON.INI for the business application server, then you must run the following utilities in the order indicated:
    1. Execute the configureEnv – Set up Environment Settings utility to reflect the parameter change in the ENVIRON.INI.
    2. Execute the initialSetup utility (using the –t option) to rebuild the configuration files using the ENVIRON.INIand provided template files. This will reset the configuration to the contents of the base template files or custom template (if used). See initialSetup – Maintain Configuration Settings for details.
    3. Any configuration changes that are overridden by templates (base or custom) must be manually reapplied (if necessary).
    4. Execute the initialSetup utility (with the –w option) to implement the configuration files in the product business application files. This step is not necessary of you are using configuration overrides.
  • If the change is to any setting not contained in the ENVIRON.INI for the business application server, but is in the configuration files for the business application server, then you must run the following utilities in the order indicated:
    1. Make any manual changes to the relevant configuration files.
    2. Execute the initialSetup utility (with the -w option) to implement the configuration files in the business application server files. This step is not necessary of you are using configuration overrides.

Business Application Server Deployment Process

After the configuration of the business application server is complete (as outlined in Business Application Server Configuration Process), the final step to implement your application is to deploy the product within the JEE Web application server.

There are three methods of deploying the product within the JEE web application server:

  • Use the deployment utilities provided on the console of the JEE web application server. The WAR/EAR files that are available under $SPLEBASE/splapp/applications can be manually deployed using the console. Refer to the Installation Guide for specific platform instructions, and to the Administration Guide for the JEE web application server.
  • Use the deployment utilities provided on the command line of the JEE Web application server. The WAR/EAR files that are available under $SPLEBASE/splapp/applications can be manually deployed using the JEE Web application server vendor supplied deployment command line utilities. Refer to the Installation Guide for specific platform instructions and the administration guide for the JEE Web application server.
  • Several specific utilities for JEE Web Application are provided with the product to deploy the EJB Application to the JEE Web application server. These call the same utilities provided in the previous option but are provided with the product.

This section will outline the latter option.

Several specific utilities from Oracle WebLogic are provided with the product to deploy the Web Application to the domain.

Figure 6-9 Business Application Server Deployment Utilities

Figure that shows the structure of the Business Application Server Deployment process.
  • Use the WebLogic console, Fusion Middleware Control or WLST to deploy/redeploy the EAR files.