Setting up a WebLogic domain

As you may know, after finishing the installation of Oracle WebLogic Server, you have the necessary binaries to start a container, but there is no configured server to deploy your code yet (unless you installed the samples, but we're not going to use them). To accomplish this, you have to create a domain consisting of one or more server instances. Your code runs on these instances.

We're going to use a basic domain template, consisting of just one instance, since we don't have any scalability or high availability requirements for the time being.

Tip

Concepts related to how to configure an Oracle WebLogic Server environment—domains, clusters, machines, and so on—are covered in Chapter 10, Scaling Up the Application. For now, we only have to know that we need an instance to run the projects on, and it is part of a domain, which is the component that OEPE links to.

To create it, follow the ensuing steps:

  1. Start the Configuration Wizard script, config.cmd (Windows) or config.sh (others), located at $MW_HOME/wlserver/common/bin/.
  2. Leave the Create a new domain option, enter /opt/packt/domains/tickets as Domain Location and click on Next:
    Setting up a WebLogic domain
  3. We are going to use only the Basic WebLogic Server Domain template:
    Setting up a WebLogic domain
  4. Configure the administrator's name (login) and password and navigate to the next page.
  5. Leave the Development option selected under Domain Mode, make sure that the 1.7 JDK we installed at the start of this chapter is selected and click on Next twice.
  6. On the Configuration Summary screen, click the Create button to start the process.

    Tip

    By default, the server instance is bound to TCP port 7001. If you have other software using this port, check Administration Server on the Advanced Configuration screen, click on Next and change the Listen port field to another value.

  7. When the process is done, click on the Next button to show information about the brand new domain, and click on Finish to close the wizard.

    Tip

    It is recommended to export an environment variable DOMAIN_HOME that points to the domain you are currently working on, tickets in this case. For example: export DOMAIN_HOME=/opt/packt/domains/tickets.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.234.188