Anda di halaman 1dari 3

Creating Additional Dynamo Server Instances

Creating Additional Dynamo Server Instances


Dynamo server is the term for a specific collection of configuration information, which
can then be included with your Nucleus-based application when you assemble the EAR file.
It includes information such as machine names and ports, system paths, connection pools,
etc.

The ATG 7 installation comes configured with a default server instance in the
<ATG7dir>/home/servers/original directory. You can create additional,
individually configurable ATG servers by running the
<ATG7dir>/home/bin/makeDynamoServer script, or through the Configuration
Manager in the Dynamo Administration UI when the default server is running.

For information about assembling an EAR file that uses a non-default server, see Using a
Non-Default ATG Server in the Developing and Assembling Nucleus-Based Applications
chapter.

Using the MakeDynamoServer Script

Run the makeDynamoServer script with the following syntax:

makeDynamoServer.bat <new_server_name> <rmi_port_number>


<drp_port_number>

This script creates a new <ATG7dir>/home/servers/<new_server_name> directory


with the following subdirectories and properties files:

|--- data
|--- j2ee
|--- runtime
|--- localconfig (includes CONFIG.properties)
|--- atg
|--- dynamo (includes Configuration.properties)
|--- logs
|--- archives
|--- pagebuild
|--- sessionswap

It sets the name property in the localconfig/CONFIG.properties file. For


example:

name=Server myServer

It also sets the rmiPort, rmiEnabled, and drpPort properties in the


localconfig/atg/dynamo/Configuration.properties file. For example:
rmiEnabled=true
rmiPort=9001
drpPort=9002

Using the Configuration Manager

To open the Configuration Manager, connect to the Dynamo Administration UI using this
URL:

http://localhost:8080/dyn/admin

Enter your username and password; the defaults are admin and admin. When the
Dynamo Administration UI opens, click on the Configuration Manager link to see your
configuration options.

To add a new server, click on Add, Delete, or Reset Servers. Unless you explicitly set its
properties, the new server inherits the properties of the default server.

Configuring a New Server Instance

The Configuration Manager's Dynamo server list shows the servers registered with the
Configuration Manager. Any changes you make to the default configuration affect all
Dynamo servers that are using the default configuration for that setting.

To configure an individual server, click on the server's name in the list. To configure a
cluster, see the Setting up Clustering section in the Configuring for Production chapter.

The Changing Component Properties with the ACC section included an example of how to
change the port number of Dynamo's internal RMI server. To make that same change using
the Configuration Manager, do the following:

1. Click on the name of the server you want to configure (for example, Default
Configuration).

The Server page opens, listing the configuration properties that you can modify in
various categories.

2. In the Configure Internal Servers section and click on the RMI Server link.

3. When the Configure RMI Service page opens, type the new port number in the RMI
service port field.

4. Click on Apply Changes.

The change is written to a properties file in your ATG installation, but does not affect the
currently running Nucleus-based application. For a development-mode application, restart
the application for the change to take effect. For a standalone application that is not using
your ATG installation configuration, reassemble and redeploy the EAR.
runAssembler -server myServer MyApp.ear -m MyApp DSS

then copy paste atg folder from jbosshome/server and rename to test

thn run the following command “run -c test”