Create and Modify Administered Objects in EMS

You can create administered objects for storage in EMS using either the administration tool or the administration APIs, or directly in the configuration files. This section describes how to create administered objects using the administration tool.

To create a connection factory, use the create factory command in the EMS Administration Tool. For example, to create a generic connection factory, named myFactory, that establishes a TCP connection to port 7344 on server1, start the EMS Administration Tool and enter:

   create factory myFactory generic URL=tcp://server1:7344

The connection factory data stored on the EMS server is located in the factories.conf file. You can use the show factories command to list all of the connection factories on your EMS server and the show factory command to show the configuration details of a specific connection factory.

A connection factory may include optional properties for balancing server load and establishing thresholds for attempted connections, as described in Connection Factory Parameters. These properties can be specified when creating the factory or modified for an existing factory using the addprop factory, setprop factory, and removeprop factory commands.

For example, to set the maximum number of connection attempts for the connection factory, myFactory, from the default value of 2 to 5, start the EMS Administration Tool and enter:

   addprop factory myFactory connect_attempt_count=5

And to reset the value back to 2, enter:

   setprop factory myFactory connect_attempt_count=2