static public method O2GTransport.setApplicationID

Brief

Sets an application id property.

Declaration
Java
static void  setApplicationID (String applicationID)

Parameters
applicationID

A new applicationID string.

Details

The applicationID is used on the server for identifying your application. The method should be called before a client application logs in to a server. The method can be called many times, but usually it is called once after the application starts. In case the applicationID is not set by the client application, ForexConnect sends to the server the name of a class where the static main method is implemented.

Set Application ID [hide]

mSession = O2GTransport.createSession();
O2GTransport.setApplicationID("Java application");
System.out.println("After set" +  O2GTransport.getApplicationID());
SessionStatusListener statusListener = new SessionStatusListener(mSession, mDBName, mPin);
mSession.subscribeSessionStatus(statusListener);
ResponseListener responseListener = new ResponseListener();
mSession.subscribeResponse(responseListener);
mSession.login(mUserID, mPassword, mURL, mConnection);

Declared in O2GTransport

back