10.07.2015 Views

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example 12-14 SametimeToken getToken() methodpublic String getToken(){m_resolver.addResolveListener(this);m_tokenService.addTokenServiceListener(this);m_resolver.resolve(m_strUserName);try{int nCount=0;while (m_bFinished == false){if (++nCount > 50){m_bFinished = true;}else{Thread.sleep(100);}}// end while}// end trycatch (InterruptedException e){}m_tokenService.removeTokenServiceListener(this);m_resolver.removeResolveListener(this);m_tokenService = null;m_resolver = null;// Log out from the server...m_saService.logout();// Pause briefly to allow service to log outtry{Thread.sleep(10);}catch (InterruptedException e){}// Stop the session and unload itm_session.stop();m_session.unloadSession();return m_strUserToken;348 <strong>Lotus</strong> <strong>Instant</strong> <strong>Messaging</strong>/<strong>Web</strong> <strong>Conferencing</strong> (Sametime): Building Sametime-Enabled Applications

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!