The Application instance contains the information and authentication credentials needed to register and connect to the Sybase Unwired Platform server.
// Initialize Application settings
Application app = Application.GetInstance();
// The identifier has to match the application ID deployed to the SUP server
app.ApplicationIdentifier = "SUP101";
// ConnectionProperties has the infomation needed to register
// and connect to SUP server
ConnectionProperties connProps = app.ConnectionProperties;
connProps.ServerName = "supserver.mycompany.com";
connProps.PortNumber = 5001;
// Other connection properties need to be set when connecting through relay server
// provide user credentials
LoginCredentials loginCred = new LoginCredentials("supAdmin", "supPwd");
connProps.LoginCredentials = loginCred;
// Initialize generated package database class with this Application instance
SUP101DB.SetApplication(app);