Runtime components : Channels components : Mobile Channel : Tasks : Establishing session : Establishing session in the client side
  
Establishing session in the client side
After the configuration, you need to invoke the establishSession method to establish the session with the UNICOM® Digital Transformation Toolkit (UDTT™) server. It returns true if the session is successfully established with the server. Following is the code example:
if (adapter==null){
  adapter=new MobileAdapter();

  if (adapter.establishSession()==false){
    System.out.println("Establish session failed!");
  adapter=null;
  }

}
Go up to
Establishing session