Friday 7 December 2007

Creating WebLogic Configuration/Domain

A domain is a logically related group of WebLogic Server resources that you manage as a single administrative unit. A domain saves all the resource and application information in a XML-based configuration repository. To deploy and run applications on WebLogic Server first create a domain.

The domain configuration wizard is the recommended tool for creating new domains. If you are scripting the creation of domains, the silent mode of the domain configuration wizard is the recommended tool. WebLogic Server domains can be created either from one of the "out of the box" (OOB) domain templates provided or from custom domain templates.


For creating custom domain templates, use the configuration template builder, which is a stand-alone Java application that lets you create custom configurations and extensions. You can use the configurations and extensions to create and update domains.


The domain configuration wizard has these properties:


1. The wizard guides you through the process of creating or extending a domain for a target environment.
2. The wizard can use an OOB predefined domain template or a custom domain template to create or extend a domain.
3. The wizard creates the config.xml file, sets up basic security, builds start-up scripts, and so on.
4. The wizard can be started in graphical, console or silent mode.
To start the wizard in graphical mode, run one of these commands: (If you want to create JAR configuration template file)


%BEA_HOME%\weblogic81\common\bin\config.cmd
%BEA_HOME%\weblogic81\common\bin\config.sh


The domain configuration template builder has these properties:

1. The wizard guides you through the process of creating or extending configuration template (JAR file)
2. The configuration wizard can use the created configuration (domain) template to create a domain.
The configuration template builder can be started only in graphical mode.

To start the configuration template builder, run one of these commands:

%BEA_HOME%\weblogic81\common\bin\config_builder.cmd
%BEA_HOME%\weblogic81\common\bin\config_builder.sh


Tips

1.If WebLogic Domain/Configuration is distributed on multiple physical machines, then the domain configuration wizard should be run only on the administration server hardware (machine).
2.Running the domain configuration Wizard in managed server hardware is not required.
3.Create WebLogic domains outside WebLogic Server installation directories (By default domains are created in %BEA_HOME%\user_projects\domains )
4.When creating a startup script for the administration server, if the script (startWebLogic.cmd/sh) does not invoke the weblogic.Server class from within the domain directory, use this command line option to specify the location of domain -Dweblogic.RootDirectory=path
5.When starting managed servers (startManagedWebLogic.cmd/sh), if set -Dweblogic.RootDirectory will be set as the server root directory. And will be used for storing files such as log files and managed-server independence (MSI) files.

No comments: