1. Setup Ant Task
This section describes the Ant tasks used to organize the JEUS environment.
1.1. create-domain
The create-domain Ant task can create a new domain environment.
The task is defined in the build.xml file in the JEUS_HOME/setup directory. The following file contains the basic configuration.
JEUS_HOME/setup/domain-config-template.properties
The following describes the create-domain task properties.
Property | Description |
---|---|
domain |
Domain name. (Default value: jeus_domain) |
servername |
JEUS Master Server name. (Default value: adminServer) |
nodename |
Node name used by JEUS Master Server. (Default value: node1) |
jeus.address |
JEUS Master Server address. (Default value: 0.0.0.0) |
jeus.port |
JEUS Master Server port. (Default value: 9736) |
jms.port |
JEUS Master Server JMS port. (Default value: 9741) |
http.port |
JEUS Master Server HTTP port. (Default value: 8808) |
jvm.config |
JEUS Master Server JVM configuration. (Default value: -Xmx1024m -XX:MaxPermSize=128m) |
jeus.username |
Domain administrator account. It is strongly recommended to change to a domain administrator account name. (Default value: administrator) |
jeus.password |
Domain administrator account password. Base64 encoded value of jeus. It is strongly recommended to change the value through the Ant configuration or the set-password command of jeusadmin. (Default value: {base64}amV1cw==) |
usevirtualmulticast |
When using System Clustering Framework (SCF), this property determines whether to use the virtual multicast, which uses TCP communication. (true | false, default value: false) |
heartbeataddress |
The heartbeat address used in SCF. Not applicable if uservirtualmulticast is set to true. (Default value: 230.30.1.1) |
heartbeatport |
The heartbeat port used in SCF. Not applicable if uservirtualmulticast is set to true. (Default value: 3030) |
Example
The following is an example of creating a domain using the Ant task.
In the example, the domain name is set to domain1, the JEUS Master Server name is set to 'adminServer', and JEUS Master Server JVM is set to '-Xmx512m -XX:MaxPermSize=256m'. Although each property already has a default value, this example provides values to show how to set them.
JEUS_HOME/setup$ ant create-domain -Ddomain=domain1 -Dservername=adminServer -Djvm.config="-Xmx512m -XX:MaxPermSize=256m" -Dheartbeataddress=230.30.1.1 -Dheartbeatport=3030 Buildfile: JEUS_HOME/setup/build.xml create-domain: [echo] Creating a domain configuration: domaindir="JEUS_HOME/domains/domain1 domain = domain1, server-name = adminServer, admin password={base64}amV1cw==, server base port=9736, server base listen address=${jeus.address} [mkdir] Created dir: JEUS_HOME/domains/domain1 [mkdir] Created dir: JEUS_HOME/domains/domain1/.applications [mkdir] Created dir: JEUS_HOME/domains/domain1/.deploymentplans [mkdir] Created dir: JEUS_HOME/domains/domain1/bin [mkdir] Created dir: JEUS_HOME/domains/domain1/config [mkdir] Created dir: JEUS_HOME/domains/domain1/lib [mkdir] Created dir: JEUS_HOME/domains/domain1/lib/application [mkdir] Created dir: JEUS_HOME/domains/domain1/servers [mkdir] Created dir: JEUS_HOME/domains/domain1/config/servlet [mkdir] Created dir: JEUS_HOME/domains/domain1/config/security [copy] Copying 2 files to JEUS_HOME/domains/domain1/config [copy] Copying 1 file to JEUS_HOME/domains/domain1/config/servlet [copy] Copying 1 file to JEUS_HOME/domains/domain1/config/security [copy] Copied 1 empty directory to 1 empty directory under JEUS_HOME/domains/domain1/config/security [copy] Copying 3 files to JEUS_HOME/domains/domain1/config/security [echo] productionmode = true [java] JVM args ignored when same JVM is used. [copy] Copying 3 files to JEUS_HOME/domains/domain1/bin [mkdir] Created dir: JEUS_HOME/domains/domain1/servers/adminServer [mkdir] Created dir: JEUS_HOME/domains/domain1/servers/adminServer/bin [mkdir] Created dir: JEUS_HOME/domains/domain1/servers/adminServer/.workspace [mkdir] Created dir: JEUS_HOME/domains/domain1/servers/adminServer/.workspace/deployed [mkdir] Created dir: JEUS_HOME/domains/domain1/servers/adminServer/.workspace/deployed/deploymentplans [mkdir] Created dir: JEUS_HOME/domains/domain1/servers/adminServer/logs [mkdir] Created dir: JEUS_HOME/domains/domain1/servers/adminServer/lib [mkdir] Created dir: JEUS_HOME/domains/domain1/servers/adminServer/lib/application BUILD SUCCESSFUL Total time: 2 seconds JEUS_HOME/setup$