Configuring Domains and Servers
Tutorial 1: Creating WebLogic Domains and Server Instances for Development
In this tutorial you use the WebLogic Server Configuration Wizard to create the domains and servers necessary to deploy and run the MedRec applications.The tutorial also shows you how to start the servers on Windows and UNIX.
The Configuration Wizard asks for information about the domain you want to create and then creates a config.xml file for the domain based on your responses. The Configuration Wizard also creates startup scripts for the server instances in the domain, and other helper files and directories to help you start and use the new domain and its servers. You will work with these scripts and directories in later tutorials.
The tutorial includes the following sections:
Prerequisites
Before starting this tutorial:
Procedure
To create the domains and server instances, and to start the servers, follow these steps. As you create the domains and servers, you will be asked to click Next to continue to the next step in the procedure.
Step 1: Create the MedRecDomain and MedRecServer
The MedRecDomain includes one server that will host the MedRec Administration application and the Patient application (both are Web applications).
- Launch the Configuration Wizard:
From the Start menu:
Start—>Programs—>BEA—>WebLogic Platform 7.1—>Domain Configuration Wizard
From a script:
- In a command-line shell, go to the WL_HOME\common\bin directory where WL_HOME is the directory where you installed WebLogic Server, typically c:\bea\weblogic710. For example, enter the following command:
cd \bea\weblogic710\common\bin
- Invoke the dmwiz.sh script to start the Configuration Wizard:
dmwiz.cmd
- In the Choose Domain Type and Name window:
- In the Choose Server Type window, select Single Server (Standalone Server).
- In the Choose Domain Location window, accept the default location for the domain directory (recommended) or type the path to the parent directory for the new domain directory. The Configuration Wizard creates a subdirectory named MedRecDomain in the directory you specify.
- In the Configure Standalone/Administrative Server window, enter:
- In the Create Administrative User window, enter weblogic for the user name and password. (In a production environment, the user name and password should not be the same.)
- In the Install Server as Windows Service window, select No.
- On Windows only, in the Create Start Menu Entry For Server window, select Yes.
- In the Configuration Summary window, verify that your entries are correct:
Domain Name: MedRecDomain
Server Type: Single Server (Standalone Server)
Domain Template Name: WLS Domain
Server Name: MedRecServer
Install Directory: C:\bea\user_projects\MedRecDomain
Listen Address: mymachine
Listen Port: 7101
SSL Listen Port: 7102
Windows Service: no
Windows Start Menu: yes
User Name: weblogic
Password: ********
If your entries are correct, click Create to create the domain and server configuration. If your entries are incorrect, click Previous to navigate back through the wizard and make the corrections.
- In the Configuration Wizard Complete window, select Run Configuration Wizard again and then click Next. Continue with Step 2: Create the PhysiciansOffice Domain and Server.
Step 2: Create the PhysiciansOffice Domain and Server
The PhysiciansDomain includes one server that will host the Physician application, which is a Web application.
- If the Configuration Wizard is not already running, launch the Configuration Wizard as described in Step 1: Create the MedRecDomain and MedRecServer.
- In the Choose Domain Type and Name window:
- In the Choose Server Type window, select Single Server (Standalone Server).
- In the Choose Domain Location window, accept the default location for the domain directory (recommended) or type the path to the parent directory for the new domain directory. The Configuration Wizard creates a subdirectory named PhysiciansOfficeDomain in the directory you specify.
- In the Configure Standalone/Administrative Server window, enter:
- In the Create Administrative User window, enter weblogic for the user name and password. (In a production environment, the user name and password should not be the same.)
- In the Install Server as Windows Service window, select No.
- On Windows only, in the Create Start Menu Entry For Server window, select Yes.
- In the Configuration Summary window, verify that your entries are correct:
Domain Name: PhysiciansOfficeDomain
Server Type: Single Server (Standalone Server)
Domain Template Name: WLS Domain
Server Name: PhysicianServer
Install Directory:
C:\bea\user_projects\PhysiciansOfficeDomain
Listen Address: mymachine
Listen Port: 7201
SSL Listen Port: 7202
Windows Service: no
Windows Start Menu: yes
User Name: weblogic
Password: ********
If your entries are correct, click Create to create the domain and server configuration. If your entries are incorrect, click Previous to navigate back through the wizard and make the corrections.
- In the Configuration Wizard Complete window, select End Configuration Wizard and click Done.
Step 3: Start the MedRec Server
From the Start menu:
Start—>Programs—>BEA—>WebLogic Platform 8.1—>User Projects—>MedRecDomain—>Start Server
From a script:
- In a command-line shell, go to the root directory of the MedRec domain, typically c:\bea\user_projects\MedRecDomain. For example, enter the following command:
cd \bea\user_projects\MedRecDomain
- Invoke the startWebLogic.cmd script to start the MedRec server:
startWebLogic.cmd
Enter the username and password (weblogic) that you specified when you created the MedRec domain.
Step 4: Start the Physician Server
From the Start menu:
Start—>Programs—>BEA—>WebLogic Platform 8.1—>User Projects—>PhysiciansDomain—>Start Server
From a script:
- In a command-line shell, go to the root directory of the Physicians domain, typically c:\bea\user_projects\PhysiciansDomain. For example, enter the following command:
cd \bea\user_projects\PhysiciansDomain
- Invoke the startWebLogic.cmd script to start the Physician server:
startWebLogic.cmd
Enter the username and password (weblogic) that you specified when you created the Physicians domain.
Best Practices
The Big Picture
This tutorial is the basis for setting up your development environment. Before you can deploy applications to a server, you must first configure domains and servers to which you want to deploy the applications.
The full MedRec application suite uses two domains:
In later tutorials, you will set up the development directory structure and configure a PointBase database to support the MedRec application suite.
Related Reading
|
Copyright © 2002 BEA Systems, Inc. All rights reserved.
Required browser: Netscape 4.0 or higher, or Microsoft Internet Explorer 4.0 or higher.
|