03 Config Slides
03 Config Slides
1. Configuring Domains
– How WebLogic Server Domain works
– Domain Directory Structure and Files
– Creating a Domain
2. Configuring Servers
3. Domain Templates
4. Console Administration
5. Command Line Administration
Managed
Monitor/
Server 3
Update
Configuration LOG Local Logging
Repository
Configuring a WebLogic Server Environment-3 © 2006 BEA Systems, Inc. 69
Configuring a Domain
1. Configuring Domains
2. Configuring Servers
– Configuring Managed Servers
– Starting Managed Servers
– Running Multiple WLS Instances
3. Domain Templates
4. Console Administration
5. Command Line Administration
1 2
LOG ServerA
192.168.1.2:7001
Critical Domain
Get configuration LOG Local Logging
Notifications
at startup (http/https)
Admin Server
192.168.1.1:7001 ServerB
192.168.1.1:7002 192.168.1.3:7001
GET / SET LOG Local Logging
f First time you start the server, the server reads the Boot
Identity file and overwrites it with an encrypted version
of the username and password.
f Thereafter, the server will remember your identity for
the subsequent startup cycles.
f A multihomed machine:
– Is a machine with multiple IP addresses
– Can run a different WLS instance bound to each IP address
– Can be used to configure a cluster on a single machine
192.168.1.1
192.168.1.2
Machine
1. Configuring Domains
2. Configuring Servers
3. Domain Templates
– Creating customized domain templates
4. Console Administration
5. Command Line Administration
Add
script
to
domain
1. Configuring Domains
2. Configuring Servers
3. Domain Templates
4. Console Administration
– WebLogic Server Administration Console
– Setting Basic Properties Via Console
5. Command Line Administration
https://hostname:secureport/console (secure)
Example URLs:
http://localhost:7001/console
http://adminDNSName:7001/console
https://127.0.0.1:7002/console
10
0101
1110
f Enter the user name and password that you set when
creating your domain.
File-based distribution
using Administration
Config.xml channel Config.xml
Edit works
on separate • Simple beans (not remote)
copy of files • File-based change distribution
• Separation of edit and activation
Lab Exercise
1. Configuring Domains
2. Configuring Servers
3. Domain Templates
4. Console Administration
5. Command Line Administration
– Managing WebLogic Server Via the Command Line WLST
tool
f Setting environment
f Invoking WLST
f Requirement for entering WLST commands
f Running Scripts
f Importing WLST as a Jython Module
f Exiting WLST
1) Invoke WLST:
c:\>java weblogic.WLST
wls:/offline>
2) Use the writeIniFile command to convert WLST definitions
and method declarations to a .py file:
wls:/offline> writeIniFile("wl.py")
3) Open a new command shell and invoke Jython directly by
entering the following command:
c:\>java org.python.util.jython
4) Import the WLST module into your Jython module using
the Jython import command:
>>>import wl
5) Now you can use WLST methods in the module. For
example, to connect WLST to a server instance:
wl.connect(’username’,’password’)
Exit WLST:
wls:/mydomain/serverConfig> exit()
Exiting WebLogic Scripting Tool ...
c:\>
f Interactive
– When you enter a command in the WLST console and view
the response immediately
f Script
– When you create a text file, with .py extension, that contains
a series of WLST commands
f Embedded
– When you instantiate an instance of the WLST interpreter in
your Java code and use it to run WLST commands
connect(‘weblogic’,
connect Connects to a server ’weblogic’,
instance (online mode) ’t3://localhost:7011’)
Lab Exercise