Writing the Java Code for Batch Registration

John or his Java-savvy developer reviews the Developer Guide for Unwired Server Management API and decides to write Java code to automate application connection registration outside of Sybase Control Center.

  1. Use Unwired Workspace to open the RegisterApplicationConnections.java class from the src folder.
  2. Update these properties based on what you indicated during installation.
    public class RegisterApplicationConnections {
    
    	private String supHost = "localhost";
    	private int supPort = 2001;
    	private String supAgentHost = "localhost";
    	private int supAgentPort = 9999;
    	private String supAdministrator = "supAdmin";
    	private String supAdministratorPassword = "AdminPwd";
    
  3. Scan the Java file to determine if any other parameters should change based on your environment.
    If a Relay Server farm with an RSOE is set up and configured, indicate the Relay Server host, Relay Server port number, and farm ID (indicated by zero in the example).
  4. Save the changes.