![]() ![]() ![]() ![]() ![]() ![]() |
This section provides information and examples for some common template creation tasks:
The following example explains how to create a custom domain template using the Avitek Medical Records Sample Domain. A domain template defines the full set of resources within a domain, including infrastructure components, applications, services, security options, and general environment and operating system parameters. Once you have created this sample domain, you can then use this template as input to the Configuration Wizard to create a new Medical Records sample domain.
Note: | This example is based on the assumption that you installed the WebLogic Server samples during your product installation. For information about installing the samples, see the Installation Guide at the following URL: |
Note: |
http://download.oracle.com/docs/cd/E13179_01/common/docs102/install/index.html |
For this example, enter the following information and click Next.
Avitek Medical Records Sample Domain
BEA Systems, Inc
BEA
Create the Avitek Medical Records domain in a directory outside of the installed kit. The Avitek Medical Records is a WebLogic Server sample application suite that concisely demonstrates all aspects of the Java EE platform.
Since the applications in this domain were included with your WebLogic software, you cannot change the relative path of the directory into which they are imported. Because these applications already reside on your system, they are not copied into the template.
For this example, leave all applications selected and click Next.
.cmd
, .sh
, .xml
, .properties
, and .ini
.bin
directorylib
directorysecurity
directory that are not created automatically during domain creation. For example, XACMLAuthenticatorInit.ldift
and XACMLRoleMapperInit.ldift
are not included by default.config
directory that are not included automatically by the Template Builder during template creation. For example, config.xml
and any JDBC and JMS resources defined in config.xml
are not displayed in the Current Template View pane by default because the Template Builder includes them in the template, automatically, during template creation.Note: | Because the applications to be included in this template are provided with your product installation, they will not be copied into the template. Therefore, they are not listed under Applications Root Directory in the Current Template View pane. |
If other files exist on your system that are needed by deployed applications, you can add them using this window.
For this example, we need to add a patient data file that is not included by default. To add the required file, do the following:
Because the Medical Records sample uses the default PointBase demo database included with your product installation, you do not need to add SQL scripts in this example.
However, you may want to use the Medical Records sample with other databases, such as Oracle or MySQL. To do so, you need to add the appropriate database scripts, as follows:
Oracle
from the Type drop-down list, and Any
from the Version drop-down list.
BEA_HOME
\wlserver_10.0\samples\server\medrec\setup\db
In this pathname, WL_HOME
represents the directory in which you installed WebLogic Server, typically C:\bea\wlserver_10.0
.
The names of the files that you added are displayed in the Selected SQL Files list and the Selected Database Scripts pane.
To add database files for MySQL, complete the following procedure.
MySQL
from the Type drop-down list, and Any
from the Version drop-down list.
BEA_HOME
\wlserver_10.0\samples\server\medrec\setup\db
The names of the files that you added are displayed in the Selected SQL Files list and the Selected Database Scripts pane.
Servers can be reached through the following URL: protocol
://
listen-address
:
listen-port
For more information, see Configure the Administration Server.
To configure the Administration Server in this example, leave the default values selected and Click Next.
By default, the username/password combination for the Medical Records domain is weblogic/weblogic
. You also have the option to configure additional users, groups, and global roles.
For this example, accept the defaults defined and click Next.
To create the Start Menu entry to use to start the Medical Records server:
Start Medical Records Server
.bin/startWebLogic.cmd
. It is not necessary to complete the remaining fields for this example.To create the Start Menu entry to use to stop the Medical Records server:
Stop Medical Records Server
.bin/stopWebLogic.cmd
. It is not necessary to complete the remaining fields for this example.In this example, it is not necessary to edit any additional scripts or files. Click Next to proceed to the Review WebLogic Domain Template window.
Click Next to proceed to the Create a Template window.
For this example, enter my_medrec_template
in the Template jar name field.
By default, the template is created in BEA_HOME
\user_templates
, where BEA_HOME
is the directory that contains the product installation. You do not need to change the default in this example.
The following example shows how to create a custom extension template by modifying the Avitek Medical Records Sample Domain extension template provided with your product installation. An extension template defines applications and services that can be used to extend an existing domain. The process used to create an extension template is virtually the same as the process used to create a domain template except that you are not prompted to configure the Administration Server, assign an Administrator username and password, or specify Start menu entries because these domain settings are already defined in the domain to be extended.
In this example, you create a customized MedRec extension template in which you will add support for an additional Medical Records user. Once you have created the sample extension template, you can extend an existing WebLogic domain with the Medical Records sample domain functionality by specifying your new extension template as input to the Configuration Wizard.
To create a customized MedRec extension template, complete the following procedure:
For this example, you do not need to modify the description.
Click Next to proceed to the Add or Omit Applications window.
For this example, you do not need to add or omit any applications.
In this example, the Avitek Medical Records Sample Domain extension template includes a separately defined applications directory. Therefore the applications contained in the template are listed under Applications Root Directory in the Current Template View pane.
Click Next to proceed to the Add SQL Scripts window.
For this example, you do not need to add any database scripts.
Because you are going to define an additional user in this example, select Yes and click Next.
In this example, you are going to define a new physician and assign the physician to an existing group. To do so:
In this example, you need to remove joe@md.com
from the Administrators
group and assign him to the group MedRecPhysicians
. To do so:
Administrators
group is selected.
A list of current assignments for the Administrators
group is displayed in the left pane.
joe@md.com
.MedRecPhysicians
.
A list of current assignments for the MedRec Physicians
group is displayed in the left pane.
joe@md.com
. The list of groups associated with joe@md.com
is updated to reflect the change.In this example, it is not necessary to edit any additional scripts or files. Click Next to proceed to the Review WebLogic Domain Template window.
For this example, enter my_medrec_ext_template
in the Template jar name field.
By default, the template is created in BEA_HOME
\user_templates
, where BEA_HOME
is the directory that contains the product installation. You do not need to change the default in this example.
![]() ![]() ![]() |