Configuring and Managing WebLogic Server
When you are ready to start developing or testing applications, use the Configuration Wizard to create and configure a domain. A domain is a collection of resources, such as servers, clusters, database connections, security services, and J2EE applications, that you manage as a unit. A domain must contain at least a definition for an Administration Server and an administrative user. You can define additional resources as part of the domain-creation process or at any time after creating the domain.
To create a domain, start the Configuration Wizard and choose a domain configuration template. Like a standard template, a domain configuration template provides a basic structure for a domain that you modify as your needs require.
The following sections describe creating and configuring domains:
For more information, refer to:
You can start the Configuration Wizard any time after installing WebLogic Server. The wizard creates domains only on the computer on which it is installed; it cannot connect to remote hosts and create domains there. (After you create the domain, you can log on to a remote WebLogic Server host and use that host to run one or more servers that you created in the domain. For more information about starting servers, refer to "Starting and Stopping Servers" in the Administration Console Online Help.)
The installation program prompts you to start the Configuration Wizard. In addition, you can start the wizard by completing either of the following tasks:
To start and run the Configuration Wizard on a Windows computer, select the Configuration Wizard option from the BEA program group in the Windows Start Menu.
To start and run the Configuration Wizard in a GUI environment on a UNIX computer (or from a Windows command prompt):
If you try to start the Configuration Wizard on a system that cannot support the graphical display, the wizard automatically starts in console mode.
To start the Configuration Wizard in a text-based environment (console mode):
On the first page of the Configuration Wizard, choose Create new WebLogic configuration and then click Next.
The second page of the Configuration Wizard asks you to choose a domain configuration template. A domain configuration template provides a basic structure for a domain that you modify as your needs require. You can choose templates that BEA provides or templates that your organization provides.
Table 3-1 provides an overview of the WebLogic Server domain configuration templates. For more information about these and the templates that other BEA products provide, see "Template Reference" in the Creating WebLogic Configurations Using the Configuration Wizard guide.
Your organization can provide templates as well. For example, each development team can create a domain configuration template that defines JDBC connection pools and other resources that are specific to the application being developed.
To choose from additional templates, under Template Locations, click the Browse button and choose the directory in which your organization has located additional templates.
For information about creating templates, refer to "Creating Configuration Templates Using the Template Builder" and "Creating Extension Templates Using the Template Builder" in the Creating WebLogic Configurations Using the Configuration Wizard guide.
After you choose a domain configuration template, the Configuration Wizard prompts you to choose one of the following:
For more information about completing the remaining steps, refer to the Configuration Wizard online help or to "Creating a New WebLogic Domain" in the Creating WebLogic Configurations Using the Configuration Wizard guide.
If you are in a development environment and want the simplest possible domain for developing your applications, you can use the Configuration Wizard to create a domain with a single server instance. In this domain, the single server you create is an Administration Server. In a development environment it is acceptable to deploy applications on the Administration Server; in a production environment, BEA recommends that you use Administration Servers only for managing the domain and you deploy applications only on Managed Servers.
To create a new domain with a single WebLogic Server instance:
The Domain Configuration Wizard displays the Create or Extend a Configuration page.
Note: The remaining instructions in this section assume that you are running the Domain Configuration Wizard in GUI mode.
See "Specifying an Initial Administrative User for a Domain" in the Administration Console Online Help.
For information on server modes, see Production and Development Modes.
By default, the wizard creates a domain with the following characteristics:
WL_HOME\user_projects\domains\mydomain
.boot.properties
file.To start the server in this domain, open a command prompt, change to WL_HOME\user_projects\domains\mydomain
, and run the startWebLogic.cmd
(Windows) or startWebLogic.sh
(UNIX) script. For more information about starting servers, refer to "Starting and Stopping Servers" in the Administration Console Online Help.
To access the Administration Console for the domain, use any of the following URLs:
http://localhost:7001/console
http://
DNS-name
:7001/console
DNS-name
is the DNS name of the computer on which the server is running.http://
IP=Address
:7001/console
IP-Address
is an IP address of the computer on which the server is running.For information about adding resources to this simple domain, refer to:
This type of domain configuration is recommended for production environments that require the improved availability and performance provided by failover and load balancing in a WebLogic Server cluster. For more information about clusters, refer to "Introduction to WebLogic Clustering" in the Using WebLogic Server Clusters guide.
To create a new domain with a cluster of Managed Servers and an Administration Server (which is not part of the cluster):
The Domain Configuration Wizard displays the Create or Extend a Configuration page.
Note: The remaining instructions in this section assume that you are running the Domain Configuration Wizard in GUI mode.
This field will not accept spaces.
The server name is not used as part of the URL for applications that are deployed on the server. It is for your identification purposes only. The server name displays in the Administration Console, and if you use WebLogic Server command-line utilities or APIs, you use this name to identify the server.
All Local Addresses
value. By default, remote processes can access server instances through the IP address or DNS name of the host machine. Local processes can access the server with the IP address, DNS name, or the localhost
string.To change the default behavior, click in the field and choose a value from the drop-down list. See "Configuring the Listen Address" in the Administration Console Online Help.
See "Configuring the Listen Ports" in the Administration Console Online Help.
By default, the server instance uses demonstration certificates for SSL communication. In a production environment, you must configure the server to use certificates from a certificate authority. See "Configuring the Listen Ports" in the Administration Console Online Help.
All Local Addresses
value. By default, remote processes can access server instances through the IP address or DNS name of the host machine. Local processes can access the server with the IP address, DNS name, or the localhost
string.To change the default behavior, choose a value from the drop-down list.
For guidelines on supplying addressing information for a cluster and its members, see Identify Names and Addresses in the Using WebLogic Server Clusters guide.
See "Configuring the Listen Ports" in the Administration Console Online Help.
By default, the server instance uses demonstration certificates for SSL communication. In a production environment, you must configure the server to use certificates from a certificate authority. See "Configuring the Listen Ports" in the Administration Console Online Help.
For production use, enter a DNS name that maps to the individual IP addresses of the Managed Servers in the cluster.
For testing or development purposes, use a comma-separated list of the IP addresses and ports assigned to the Managed Servers (this is the default entry). For example IPaddress1
:
port1
,
IPaddress2
:
port2
,
IPaddress3
:
port3
For servers that are in a cluster, WebLogic Server uses the Machines that you configure to determine the optimum server to which certain tasks, such as HTTP session replication, are delegated.
See "Specifying an Initial Administrative User for a Domain" in the Administration Console Online Help.
For information on server modes, see Production and Development Modes.
By default, the wizard creates a domain with the following characteristics:
WL_HOME
\user_projects\domains\mydomain
.To start the Administration Server in this domain, open a command prompt, change to WL_HOME
\user_projects\domains\mydomain
, and run the startWebLogic.cmd
(Windows) or startWebLogic.sh
(UNIX) script. To start Managed Servers, use the Node Manager or the startManagedWebLogic
script. See "Starting and Stopping Servers" in the Administration Console Online Help.
To access the Administration Console for the domain, use any of the following URLs:
http://localhost:7001/console
http://
DNS-name
:7001/console
DNS-name
is the DNS name of the computer on which the server is running.http://
IP=Address
:7001/console
IP-Address
is an IP address of the computer on which the server is running.