Creates the registration for this application and starts the connection. This method is equivalent to calling registerApplication(0).
public void registerApplication()
None.
app.registerApplication();
You must set up the ConnectionProperties and ApplicationIdentifier before you can invoke registerApplication.
Application app = Application.getInstance(); // set Application ID - need to match as the server side Application ID app.setApplicationIdentifier("SUP101"); app.setApplicationCallback(new MyApplicationCallbackHandler()); ConnectionProperties props = app.getConnectionProperties(); props.setServerName("supserver.mycompany.com"); props.setPortNumber(5001); LoginCredentials loginCred = new LoginCredentials("supAdmin", "supPwd"); props.setLoginCredentials(loginCred); SUP101DB.setApplication(app); if (app.getRegistrationStatus() != RegistrationStatus.REGISTERED) { app.registerApplication(); }