Creating WebLogic Configurations Using the Configuration Wizard
A configuration template defines the full set of resources within a domain, including infrastructure components, applications, services, security options, and general environment and operating system parameters. As part of the WebLogic Platform product, BEA provides several templates and template extensions for developers who want to create new applications. These templates are described in "Template Reference" at the following URL:
http://download.oracle.com/docs/cd/E13196_01/platform/docs81/confgwiz/tempref.html
The Configuration Template Builder makes it easy to create your own templates. It does this, for example, by enabling the:
Any template 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.
For information about creating a domain using the Configuration Wizard, see Creating a New WebLogic Domain.
The following table summarizes the procedure for creating a configuration template using the Configuration Template Builder.
You can quit the Configuration Template Builder at any time by clicking Exit.
Choose the type of template you want to create: configuration or extension. To create a configuration template, choose Create a Configuration Template. For details about creating an extension template, see Creating Extension Templates Using the WebLogic Configuration Template Builder. |
|
Select the configuration template or the directory of the domain from which you want to create a new configuration template. |
|
Specify a description of the template that will be displayed within the Select a Configuration Template window of the Configuration Wizard. (For more information about the Configuration Template window, see Selecting a Configuration Template.) |
|
Review and modify, if desired, the list of applications to be included in the template. |
|
Review and modify, if desired, the files to be included in the template. |
|
Add SQL scripts for each database that you expect to be used with the domains created from this template and specify the order in which the scripts are executed. |
|
Define parameters for the Administration Server, a designated server from which the domain is managed. |
|
Configuring Managed Servers, Clusters, and Machines When Creating Configuration Templates |
Optionally, define parameters for the Managed Servers, clusters, and host machines in your domain. |
Optionally, define parameters for Java Database Connectivity (JDBC). |
|
Optionally, define parameters for Java Message Service (JMS). |
|
Targeting Servers and Clusters When Creating Configuration Templates |
Optionally, define parameters for the target servers and clusters onto which you want to deploy application components (such as Web applications and EJB modules) and application services (such as JDBC or JMS components), or startup and shutdown classes. |
Specify a user name and password to be used for starting the Administration Server and, if desired, configure additional security. |
|
Replace specific paths, filenames, and other configuration environment settings with replacement variables in text files contained in the template. The Configuration Wizard later substitutes the variables with exact strings to set up a specific WebLogic configuration. |
|
Review the configuration template details, specify the name and directory for the configuration template, and launch the process that creates it. |
The Create a New Template window prompts you to choose the type of template you want to create: a configuration template or an extension template.
Create a template that 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 then use this template as input to the Configuration Wizard to create a new domain. |
|
Create a template that defines applications and services that can be used to extend an existing domain.The applications and services stored in the selected extension templates are imported into the domain. To learn more about creating an extension template, see Creating Extension Templates Using the WebLogic Configuration Template Builder. |
The Select a Template Configuration Source window prompts you to choose the configuration template or domain from which you want to create a configuration template. You may need to create a configuration template for a variety of reasons. For example, you may want to:
Note: WebLogic Platform is installed with a set of predefined configuration templates, which are described in "Template Reference" at the following URL:
http://download.oracle.com/docs/cd/E13196_01/platform/docs81/confgwiz/tempref.html
The Describe the Template window prompts you to provide a description that will be displayed in the Select a Configuration Template or the Select a Configuration Extension Template window of the Configuration Wizard.
Note: Fields marked with an asterisk are required.
Note: The Add Applications window is displayed if applications are included in the configuration template or domain selected in Selecting a Template Configuration Source.
The Add Applications window allows you to:
The applications displayed reside in the directory specified in the Current Application Path field. The applications are copied into your template from this location.
Note: Some of the applications listed in the Applications pane may be provided with your WebLogic Platform software. You cannot change the relative paths for these applications. When you select these applications in the Applications pane, the Imported Application Path field is replaced by an Internal Application Path. When you select these applications for inclusion in your template, this path will point to the application files contained in your WebLogic Platform installation directory. Because these files already exist on your system, they are not copied into the template.
By default, the Configuration Template Builder includes files from the domain or template you specified as the source for the template you are creating. For example:
You may also want to include other files from your system or network.
The Add Files window prompts you to review, add, or remove files in the template.
.cmd
extension, select *.cmd
from the drop-down list.
Adding SQL scripts to your template is optional. The Add SQL Scripts window prompts you to add SQL scripts for each database that you expect to be used with the domains created from this template. You can also specify the order in which the scripts are executed. When you create a domain using this template, the databases and associated SQL scripts that you include are displayed in the Test JDBC Connection Pools and Setup JDBC Database window of the Configuration Wizard.
In every domain, one server must be designated the Administration server: the central point from which the whole domain is managed. The Configure the Administration Server window prompts you to define configuration information for the Administration Server. (For details, see Brief Introduction to Domains.) This information is used to access the server in the domain.
Review the values displayed in the Configure the Administration Server window and modify them as necessary. For more information, see Configuring the Administration Server.
All machine configuration settings from the original domain or template are included in your new configuration template. If you want to customize the template further, you may do so by adding, modifying, or removing these Managed Servers, clusters, or machines.
The minimal requirement for your new WebLogic configuration is a single Administration Server on a single machine. In addition, however, you have the option of configuring other resources to be managed by the Administration Server and distributing them across multiple machines. You can:
The Managed Servers, Clusters, and Machines Options window prompts you to specify whether you want to distribute your WebLogic configuration across Managed Servers, clusters, and physical machines. For more information, see Configuring Managed Servers, Clusters, and Machines.
JDBC services and settings from the configuration or template you selected previously are replicated in your new template. If you want to customize the template further, you may do so by adding, modifying, or removing these services.
WebLogic JDBC enables Java programmers to interact with common database management systems (DBMS), such as Oracle, Microsoft SQL Server, and Sybase. The WebLogic Configuration Template Builder gives you the option of configuring a database service for your template by defining several WebLogic JDBC components:
The Database (JDBC) Options window prompts you to specify whether you want to define a database service. For more information, see Configuring a Database Service.
JMS services and settings from the configuration or template you selected earlier are replicated in your new template. If you want to customize the template further, you may do so by adding, modifying, or removing these services.
WebLogic JMS provides access to enterprise messaging systems that enable applications to communicate with one another. To familiarize yourself with the features of WebLogic JMS, see Programming WebLogic JMS at the following URL:
http://download.oracle.com/docs/cd/E13222_01/wls/docs81/jms/index.html
The wizard allows you to change JMS attributes, especially those affected by changes to the JDBC configuration. Specifically, you can:
For more information about configuring WebLogic JMS, see Configuring a Java Messaging Service.
All target settings from the original domain or template are included in your new configuration template. If you want to customize the template further, you may do so by modifying these settings. If you add services or configure your domain for distribution across servers or clusters, it is a good idea to target the servers and clusters onto which you want to deploy the applications or services.
The Applications and Services Targeting Options window prompts you to target the servers and clusters onto which you want to deploy applications and services. For more information, see Configuring Targets.
When you create a configuration template, the administrative username and password from the original domain or template are included in your new configuration template. If addition, you have the option to:
For information about providing security for application resources when creating a configuration template, see Configuring Security.
The Build Start Menu Entries window prompts you to create items to be added to the Windows Start Menu.
Review the current list of Start Menu entries. Add, modify, or delete entries as required by your configuration, using the guidelines provided in the following table. To delete an entry, click the tab for the Start Menu entry and click Delete. When you finish updating your settings, click Next.
When you are creating a template, you want the scripts and files that you are packaging with your template to be free of local configuration environment settings and ready for use by the Configuration Wizard. The Configuration Template Builder automatically updates any standard scripts included in a template, such as start scripts, by replacing hard-coded values for various configuration environment settings with replacement variables. The Configuration Wizard can later replace these variables with new hard-coded values during the configuration of a new domain.
The Prepare Scripts and Files with Replacement Variables window allows you to replace hard-coded strings with replacement variables in files that have not been updated by the Configuration Template Builder.
Note: Files that were automatically updated by the Configuration Template Builder contain a check in the check box.
The Instructions pane is replaced by an Edit File pane, in which the contents of the file are displayed. An editing toolbar is provided at the top of the window.
The replacement variable replaces the selected string. The Configuration Wizard later substitutes the replacement variables with literal strings to set up a specific WebLogic configuration. For definitions of the available replacement variables, see Replacement Variables.
Note: You can also click Reset within the Select File area to revert to the saved version of the file.
The following table defines the replacement variables available for use in your files.
The Create Template window prompts you to review details about the configuration template, specify the name and directory for the configuration template, and launch the process that creates it.
You can limit the type of information displayed in this window by selecting a filter from the Summary View drop-down list.
The template directory can be located anywhere on your system. By default, it resides in BEA_HOME
\user_templates
, where BEA_HOME
is the directory that contains the product installation (by default, this directory is c:\bea
on Windows).
The Creating Configuration window is opened to display status messages during the template creation process. The Configuration Template Builder generates a JAR file that contains all the components required by the Configuration Wizard to generate a new domain, including the configuration settings that you provided.