Monday, November 4, 2013

Domain Templates Configuration


Custom Domain Templates
A domain template defines the full set of resources within a domain, including infrastructure components, applications, services, security options, and general environment and operating system parameters. You can create a domain template from an existing template or from a domain. A domain template is used to create a new domain. Oracle provides a base Oracle WebLogic Server domain template. Domain templates are available in the <WL_HOME>/common/templates/domains directory, and extension templates are available in the <WL_HOME>/common/templates/applications directory.
The domain template defines the core set of resources within a domain, including an administration server and basic configuration information, infrastructure components, and general environment and operating system options. It does not include sample applications. You can use this template to create a basic Oracle WebLogic Server domain that you can then extend using an extension template that contains applications and services, or additional product component functionality.
The term template refers to a Java Archive (JAR) file that contains the files and scripts required to create or extend a domain.
With the Domain Template Builder, you can create two types of templates: Domain templates or Extension templates. An Extension template defines the applications and services that can provide additional product component functionality, such as Apache Beehive, product sample applications, or JDBC or JMS components. This type of template can be used to extend an existing domain.
Any template that you create with the Configuration Template Builder is used as input to the Configuration Wizard. The Configuration Wizard uses it, in turn, as the basis for creating a domain that is customized for your target environment.
The pack command enables you to create a template archive (.jar) file that contains a snapshot of either an entire domain or a subset of a domain. You can use a template that contains the subset of a domain to create a managed server domain directory hierarchy on a remote machine.
The WLST offline command-line scripting interface is used to create a new domain or update an existing domain without connecting to a running instance of Oracle WebLogic Server. The writeTemplate functionality of WLST offline provides the same capability for creating a template as the pack command. The pack command is covered in more detail in the lesson titled “Configuring Managed Servers.”


Domain Template Builder
The Domain Template Builder is designed to be used offline, only in graphical mode. It is not supported in console mode. However, you can create templates from the command line by using the pack command.
After you create your domain and add new resources and applications to it, you can use the Domain Template Builder to create a custom domain template. You can also use the Domain Template Builder to customize an existing template. For example, you may want to remove applications or add SQL scripts for additional databases. To do so, select the existing domain or template as the source for your new custom template. When your custom domain templates are complete, you can start using them to create domains using the Configuration Wizard, WLST offline, or the unpack command.

Creating a Domain Template
Creating a Domain Template: Create a template that defines the full set of resources within a domain, including infrastructure components (for example, administration servers and managed servers), applications, services, security options, and general environment and operating system parameters. You can use the template that you create as the basis for creating a domain by using the Configuration Wizard, WLST, or the unpack command.
Creating an Extension Template: Create a template that defines the applications and services that can be used to extend existing domains, but does not include any server information. You can import the applications and services that are stored in extension templates into an existing domain by using the Configuration Wizard.


The template that comes with WebLogic Server:
Located in <MW_HOME>/wlserver_10.3/common/templates/domains by default, or wherever you want to store it
The template that was just created by Domain Template Builder
Located in <MW_HOME>/user_templates by default, or wherever you want to store it
 
wls.jar Template
As from BEA and version 9.0 even though it ships with the current 10.3.1 version. Many of the readme.txt files exist only to preserve the required but empty directories.
 config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<domain xmlns="http://www.bea.com/ns/weblogic/90/domain" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://www.bea.com/ns/weblogic/90/domain.xsd">
  <name>base_domain</name>
  <server>
      <name>AdminServer</name>
  </server>
  <configuration-version>9.0.1.0</configuration-version>
  <admin-server-name>AdminServer</admin-server-name>
</domain>


 
SOA Installation
From the SOA Installer:
Welcome to Oracle Fusion Middleware 11g SOA Suite Installer. 
Before proceeding, create schemas for the suites you want to install. For more information, refer to the chapter titled “Repository Creation Utility (RCU)” in the Oracle Fusion Middleware Enterprise Installation Guide. 
Before proceeding, install and configure a WebLogic server. 
After all necessary schemas have been created and a WebLogic server is installed and configured, click Next to begin the installation.