John or his Java-savvy developer reviews the Developer Guide for
Unwired Server Runtime >
Management API and decides to write Java code to automate application
connection registration outside of Sybase Control Center.
Use Unwired Workspace to open the RegisterApplicationConnections.java class from the src folder.
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";
Set the application ID and domain for the application connection by inserting the
following code in the public AppConnectionSettingVO getSettings()
method:
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).