Exporter (0) Imprimer
Développer tout
Ce sujet n'a pas encore été évalué - Évaluez ce sujet

Creating an Oracle WebLogic Server 12c virtual machine in Windows Azure

Mis à jour: novembre 2013

The following example shows you how you can create a virtual machine based on a Microsoft-provided Oracle WebLogic Server 12c image running on Windows Server 2012 in Windows Azure.

To create an Oracle WebLogic Server 12c virtual machine in Azure

  1. Log in to the Windows Azure Management Portal.

  2. Click New, click Compute, click Virtual Machine, and then click From Gallery.

  3. Select Oracle WebLogic Server 12c Standard Edition (Preview) on Windows Server 2012 or Oracle WebLogic Server 12c Enterprise Edition (Preview) on Windows Server 2012, review the information about this image (such as minimum recommended size), and then click Next.

  4. Specify a value for Virtual Machine Name.

  5. Specify a size for the VM.

  6. Specify a user name for the VM. Note that this user is for remotely logging into the VM; this is not the Oracle WebLogic Server user name.

  7. Specify and confirm a password for the VM, and then click Next.

  8. For Cloud Service, select Create a new cloud service.

  9. Provide a unique value for Cloud Service DNS Name.

  10. Select a region appropriate for your application.

  11. For Storage Account, select Use an automatically generated storage account.

  12. For Availability Set, select (None), and then click Next.

  13. Do not add any endpoints at this time. Click Complete.

To configure your Oracle WebLogic Server 12c virtual machine in Azure

  1. Log in to the Windows Azure Management Portal.

  2. Click Virtual Machines.

  3. Click the name of the virtual machine that you want to log in to.

  4. Click Connect.

  5. Respond to the prompts as needed to connect to the virtual machine. When prompted for the administrator name and password, use the values that you provided when you created the virtual machine.

  6. Within the WebLogic Platform QuickStart dialog, click Getting Started with WebLogic Server. (If the WebLogic Platform QuickStart dialog is not already opened, open it by clicking Windows Start, typing Start Admin Server for WebLogic Server Domain, and then clicking the Start Admin Server for WebLogic Server Domain icon.)

  7. In the Welcome dialog, select Create a new WebLogic domain and then click Next.

    Boîte de dialogue Serveur WebLogic
  8. In the Select Domain Source dialog, accept the default values and then click Next.

    Boîte de dialogue Sélectionner une source de domaine
  9. In the Specify Domain Name and Location dialog, accept the default values and then click Next.

    Boîte de dialogue Spécifier un nom de domaine et un emplacement
  10. In the Configure Administrator User Name and Password dialog:

    1. [Optional] Change the user name from weblogic to a value of your choosing.

    2. Specify and confirm a password for the WebLogic Server administrator.

    3. Click Next.

    Boîte de dialogue Administrateur de la configuration
  11. In the Configure Server Start Mode and JDK dialog, select Production Mode, select the available JDK (or browser to a JDK if desired), and then click Next.

    Boîte de dialogue Configurer le mode de démarrage du serveur et JDK
  12. In the Select Optional Configuration dialog, do not select any options, and then click Next.

    Boîte de dialogue Configuration facultative
  13. In the Configuration Summary dialog, click Create.

    Boîte de dialogue Résumé de la configuration
  14. In the Creating Domain dialog, check Start Admin Server and then click Done.

    Boîte de dialogue Création d'un domaine
  15. A command prompt for startWebLogic.cmd is started. When prompted, provide your WebLogic user name and password.

To install an application on an Oracle WebLogic Server 12c virtual machine in Azure

  1. Still logged in to your virtual machine, copy the shoppingcart.war example available at http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12-ManageSessions--4478/files/shoppingcart.war locally. For example, create a folder named c:\mywar and save the WAR at http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12-ManageSessions--4478/files/shoppingcart.war to c:\mywar.

  2. Open the WebLogic Server Administration Console, http://localhost:7001/console. When prompted, provide your WebLogic user name and password.

  3. Within the WebLogic Server Administration Console, click Lock & Edit, click Deployments, and then click Install.

  4. For Path, type c:\mywar\shoppingcart.war.

    Boîte de dialogue Assistant Installation d'application Click Next.

  5. Select Install this deployment as an application and then click Next.

  6. Click Finish.

  7. Within the WebLogic Server Administration Console, click Save, and then click Activate Changes.

  8. Click Deployments, select shoppingcart, click Start, and then click Service All Requests. When prompted to confirm, click Yes.

  9. To see the shopping cart application running locally, open a browser to http://localhost:7001/shoppingcart

  10. Create an endpoint for your virtual machine:

    1. Log in to the Windows Azure Management Portal.

    2. Click Virtual Machines.

    3. Click the name of the virtual machine that you’re using for Oracle WebLogic Server.

    4. Click Endpoints.

    5. Click Add.

    6. Ensure Add Standalone Endpoint is checked and click Next.

    7. Specify a name for the endpoint, use TCP for the protocol, use 80 for the public port, and use 7001 for the private port. Click Complete.

  11. Allow an inbound connection through the firewall to port 7001.

    1. Log in to your virtual machine.

    2. Click Windows Start, type Windows Firewall with Advanced Security, and then click the Windows Firewall with Advanced Security icon. This opens the Windows Firewall with Advanced Security management console.

    3. Within the firewall management console, click Inbound Rules in the left hand pane (if you don’t see Inbound Rules, expand the top node in the left hand pane), and then click New Rule in the right hand pane.

    4. For Rule Type, select Port and click Next.

    5. For Protocol and Port, select TCP, select Specific local ports, enter 7001 for the port, and then click Next.

    6. Select Allow the connection and click Next.

    7. Accept the defaults for the profiles for which the rule applies and click Next.

    8. Specify a name for the rule and optionally a description, and then click Finish.

  12. To see the shopping cart application running on the Internet, open a browser to the URL in the form of http://<<unique_domain_name>>/shoppingcart. (You can determine the value for <<unique_domain_name>> within the Windows Azure Management Portal by clicking Virtual Machines and then selecting the virtual machine that you are using to run Oracle WebLogic Server).

Additional resources

Now that you’ve set up your virtual machine running Oracle WebLogic Server, see the following topics for additional information.

Voir aussi

Cela vous a-t-il été utile ?
(1500 caractères restants)
Merci pour vos suggestions.
Microsoft réalise une enquête en ligne pour recueillir votre opinion sur le site Web de MSDN. Si vous choisissez d’y participer, cette enquête en ligne vous sera présentée lorsque vous quitterez le site Web de MSDN.

Si vous souhaitez y participer,
Afficher:
© 2014 Microsoft. Tous droits réservés.