Tutorial 1: Creating a WebLogic Domain and Server Instance for Development
In this tutorial you use the WebLogic Server Configuration Wizard to create a domain and server necessary to deploy and run the MedRec applications.The tutorial also shows you how to start the server.
The Configuration Wizard asks for information about the domain you want to create based on the configuration template you select, 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.
To create the MedRec domain and the WebLogic Server instance to which you will deploy MedRec, follow these steps. You will use the domain and server in later tutorials.
Step 1: Create the MedRec domain and MedRec server.
The MedRec domain includes one server that will host the MedRec back-end services, the MedRec Administration application, and the Patient application (both applications are Web applications). As you create the domain and server, click Next at the end of each step to continue to the next step in the procedure.
The MedRec application suite uses log4j for logging application messages. You must copy the log4j properties file from the pre-configured MedRec domain and identify it using a startup option in MedRecServer startup script. For Web Services, you must also identify the .wsdl and the incoming directory for XML files. To complete these steps:
Set JAVA_OPTIONS=-Dlog4j.config=log4j.properties
-Dcom.bea.medrec.xml.incoming=incoming
-Dphys.app.wsdl.url=http://127.0.0.1:7101/ws_medrec/MedRecWebSe
rvices?WSDL
Use the Configuration Wizard to create and configure domains. The Configuration Wizard creates the necessary configuration file (config.xml), directory structure, and startup scripts for each new domain.
Create domain directories outside the WebLogic Server program files. It is best not to mix application files with the application server files. By default, the Configuration Wizard creates domain directories in bea_home\user_projects\domains directory, typically c:\bea\user_projects\domains, which is parallel to the directory in which WebLogic Server program files are stored, typically c:\bea\weblogic81.
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 the domains and servers to which you want to deploy the applications. In this tutorial, you created the MedRec domain, which includes one server to host the MedRec applications. You use this domain for most tutorials.