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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example 12-17 Sample applet init() methodtry{m_session = new STSession("SampleApplet " + this);}catch (DuplicateObjectException doe){doe.printStackTrace();return;}m_session.loadAllComponents();m_session.start();m_communityService =(CommunityService)m_session.getCompApi(CommunityService.COMP_NAME);m_lookupService = (LookupService)m_session.getCompApi(LookupService.COMP_NAME);m_communityService.addLoginListener(this);//m_communityService.loginByPassword("itsotest-st31.cam.itso.ibm.com","John Barrow", "password");m_communityService.loginByToken("itsotest-st31.cam.itso.ibm.com", "CN=JohnBarrow,O=Itsoportal", "(BA8FB27238196EE5C9FE6D1849CAFF47)");Note the format of the user name when the loginByToken() method is used, asopposed to the loginByPassword() method. The User ID, not any login name,must be used with the token service, as Sametime will not perform a resolve as itdoes for other logins using a password.You must also use the token quickly, since it may expire after a set time period ifthe Sametime administrator has enabled an agent in the Secrets and Tokensdatabase called SametimeSecretGenerator. This agent creates a new set oftokens at the specified interval. See the Sametime 3.1 Administrator’s Guide formore information.12.4 Enabling Active Server Pages (ASP) with SametimeLinksAs discussed earlier in the redbook, Sametime Links is a toolkit that allows <strong>Web</strong>developers to Sametime-enable their applications. Most people realize that youcan use the toolkit to Sametime-enable Domino, Notes, and <strong>Web</strong>Sphereapplications, but you can also use it on other <strong>Web</strong> application servers, such asMicrosoft Internet Information Server (IIS). This section discusses an example ofhow to Sametime-enable a Microsoft Active Server Page (ASP) running on IIS.Chapter 12. Ideas for customization and integration 351

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

Saved successfully!

Ooh no, something went wrong!