2 WebLogic Server Domains
Domains include a special Oracle WebLogic Server instance called the Administration Server, which is the central point from which you configure and manage all resources in the domain. Usually, you configure a domain to include additional Oracle WebLogic Server instances called Managed Servers. You deploy Web applications, EJBs, Web services, and other resources onto the Managed Servers and use the Administration Server for configuration and management purposes only.
For more information on WebLogic Server domains, see Understanding Domain Configuration for Oracle WebLogic Server.
This chapter includes the following sections:
Monitor domains
This section describes how to monitor your domain. This section includes the following tasks:
- Monitor domain health
- Monitor domain server instances
- Monitor domain clusters
- Monitor domain migration
- Monitor domain deployments
- Monitor domain JDBC data sources
- Monitor domain messaging
- Monitor domain asynchronous tasks
- Monitor domain port usage
Parent topic: WebLogic Server Domains
Monitor domain server instances
A server is an instance of WebLogic Server that runs its own Java Virtual Machine (JVM) and has its own configuration.
To monitor the runtime status of all server instances configured in a domain:
Parent topic: Monitor domains
Monitor domain clusters
To monitor the runtime status of all clusters configured in a domain:
Parent topic: Monitor domains
Monitor domain migration
To monitor the status of all migration requests in a domain:
Parent topic: Monitor domains
Monitor domain deployments
To monitor the status of all deployments in a domain:
Parent topic: Monitor domains
Monitor domain JDBC data sources
To monitor the status of all JDBC data sources created in a domain:
-
From the WebLogic Domain menu, select Monitoring, then select JDBC Data Sources.
The JDBC Data Sources (Monitoring) table lists the JDBC data sources that have been created in the domain and displays related status information, such as:
-
Name
-
Type
-
Resource
-
Scope
-
Server Name
-
State
For more information about these fields, see Configuration Options.
Optionally, select View to access the following table options:
-
-
-
Columns: add or remove the columns displayed in the table
-
Detach: detach the table (viewing option)
-
Sort: sort the columns in ascending or descending order
-
Reorder: change the order of the columns displayed
-
Query by Example
To test a data source:
-
In the JDBC Data Sources table, select the row of the JDBC data source instance you want to test. The Test Data Source option is displayed above the table.
-
Click Test Data Source.
-
Parent topic: Monitor domains
Monitor domain messaging
To monitor the status of JMS servers created in a domain:
Parent topic: Monitor domains
Monitor domain asynchronous tasks
To monitor the completion status of all tasks in a domain:
- Monitor an asynchronous task
- Monitor a deployment asynchronous task
- Monitor a server life cycle asynchronous task
- Monitor a service migration asynchronous task
Parent topic: Monitor domains
Monitor an asynchronous task
To view status information of a specific activation or other task:
Parent topic: Monitor domain asynchronous tasks
Monitor a deployment asynchronous task
To view status information of a specific deployment task:
Parent topic: Monitor domain asynchronous tasks
Monitor a server life cycle asynchronous task
To view status information of a specific server life cycle task:
Parent topic: Monitor domain asynchronous tasks
Monitor a service migration asynchronous task
To view status information of a specific service migration task:
Parent topic: Monitor domain asynchronous tasks
Control domains
Before you begin:
Control operations on Managed Servers require starting the Node Manager. Starting Managed Servers in STANDBY
mode requires the domain-wide administration port.
This section includes the following tasks:
Control domain server instances
You can start, resume, suspend, or shut down the server instances configured in a
domain. For information on how the server instances transition from
STANDBY
or ADMIN
to the
RUNNING
state, see Understanding Server Life Cycle in Managing Server
Startup and Shutdown for Oracle WebLogic Server.
To change the state of server instances in a domain:
Parent topic: Control domains
Configure domains
This section describes how to configure your domain. This section includes the following tasks:
- Configure domain general settings
- Configure domain JTA settings
- Configure the default JPA persistence provider
- Configure domain EJBs
- Configure domain Web applications
- Create domain notes
Parent topic: WebLogic Server Domains
Configure domain general settings
To configure general settings for a domain:
- Configure the domain-wide administration port
- Archive domain configuration files
- Change to production mode
Parent topic: Configure domains
Configure the domain-wide administration port
Before you begin:
The administration port accepts only secure, SSL traffic, and all connections via the port require authentication by a server administrator. Because of these features, enabling the administration port imposes the following restrictions on your domain:
-
The Administration Server and all Managed Servers in your domain must be configured with support for the SSL protocol.
-
All server instances in the domain, including the Administration Server, enable or disable the administration port at the same time.
Note:
The administration port cannot be dynamically enabled on a Managed Server. You must shut down each Managed Server, enable the administration port, then restart.
WebLogic Server provides the option to enable an SSL administration port for use with all server instances in the domain. Using the administration port is strongly recommended. It provides three capabilities:
-
Since communication uses SSL, administration traffic (which includes such things as administrator passwords) is more secure.
-
It enables you to start a server instance in the
STANDBY
state. -
It enables you to separate administration traffic from application traffic in your domain.
To enable the administration port for a domain:
- From the WebLogic Domain menu, select Administration, then select General Settings.
- Select the Enable Administration Port check box to enable the SSL administration for this domain.
- In the Administration Port field, enter the SSL port number that server instances in the domain use as the administration port. You can override an individual server instance's administration port assignment on the Advanced options portion of the General Settings page.
- Click Save.
After you finish:
Start all Managed Server instances in the domain. You do not need to restart the Administration Server.
Parent topic: Configure domain general settings
Archive domain configuration files
To configure how many archive files are retained:
- From the WebLogic Domain menu, select Administration, then select General Settings.
- Expand Advanced, then select the Configuration Archive Enabled check box.
- In the Archive Configuration Count field, enter the number of archive files to retain.
- Click Save.
Parent topic: Configure domain general settings
Change to production mode
All server instances in a domain run either in development mode or production mode. In general, production mode requires you to configure additional security features.
To configure all server instances in a domain to run in production mode:
- From the WebLogic Domain menu, select Administration, then select General Settings.
- Select the Production Mode check box.
- Click Save.
- Shut down any server instances that are currently running.
- Invoke the domain's
startWebLogic
script. The Administration Server starts in the new mode. - If the domain contains Managed Servers, then start the Managed Servers.
Parent topic: Configure domain general settings
Configure domain JTA settings
To configure the Java Transaction API (JTA) of a domain:
Parent topic: Configure domains
Configure the default JPA persistence provider
You can specify which Java Persistence API (JPA) persistence provider to use for each persistence entity in the persistence.xml
file. However, if no persistence provider is specified, the domain-wide default provider is used.
Changing the default provider does not affect applications that are already deployed. The setting takes effect when the server instance is restarted or the application is manually redeployed.
To specify the default JPA provider in a domain:
Parent topic: Configure domains
Configure domain Web applications
To configure Web applications in a domain:
Parent topic: Configure domains
Create domain notes
To create notes for domain configuration:
- From the WebLogic Domain menu, select Administration, then select Notes.
- On the Notes page, enter any notes about the configuration of your domain.
- Click Save.
Parent topic: Configure domains
View the JNDI tree
The JNDI browser is a central location where you can find the JNDI names of all the WebLogic Server resources. Typically, while writing WLS client programs, you would search the JNDI browser for JNDI names. The JNDI browser displays a tree of resources in the domain or a server. Selecting a node or an object in the tree, displays JNDI information including Binding Name, Object Class, Object Hash Code, and Object to String Results entries.
To view objects in the domain JNDI tree:
For more information about JNDI, see Understanding WebLogic JNDI in Developing JNDI Applications for Oracle WebLogic Server.
Parent topic: WebLogic Server Domains