Agent ID

By default, TIBCO Enterprise Administrator uses the name provided during the registration of the agent to uniquely identify an agent. You can override that behavior by providing an agent identifier that will be used instead of the name.

Registering another agent with the same id will automatically unregister the previously registered agent. Ensure that the Agent identifier is set before agent server is started. For example:
server.setAgentId("uniqueAgentId");
server.start();