Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  IBM Sametime Forum

IBM Sametime Forum



PreviousPrevious NextNext

Todor Buyukliev 29.Oct.04 08:38 AM a Web browser
Deverloper Toolkits 6.5.1 Windows NT/2000


Has anyone tried to create multiple ST clients in the same application? Is this allowed by the C++ toolkit at all?

Here is the situation I observe:

I've got a multithreaded MFC program. I'm linking with starchmfc.lib. I've got several threads whose only job is to run a message loop (each thread has its own message loop). This message loop allows me to receive events from Sametime and to tell the threads to invoke some functions I defined for initializing and logging in a ST client for example. So everything I do with the API is done within the context of the message looping threads.

In each thread I create a STSession, start it, create a CommunityService and add a MyLoginListener to it. So there are many sessions and many listeners. Everything is fine so far.

But when I start loggin in the clients a very strange thing happens: every event is fired to every LoginListener!!! This means that if I have 10 clients and one of them logs in, the login event is fired to the other 9 too. When the second client logs in, both loggedIn and loggedOut events are fired (I presume this logs out the first client) and so on...

I tried to register a LoginListener only in the first client's CommunityService. Now he's the only one to receive events, but he receives events from all the other clients too. Again loggedIn and loggedOut events are fired.

To avoid some possible questions here: yes - each STSession has a unique name, and yes - the clients are logging to different accounts, and yes - I'm registering different LoginListeners to the different CommunityServices.

Every information on this topic is highly appreciated! I want to know whether what I'm trying to do is possible in theory and how. Thanks in advance!

Multiple bots in a single applicati... (Todor Buyukliev... 29.Oct.04)
. . RE: Multiple bots in a single appli... (Yaron Reinharts... 9.Nov.04)
. . . . 10x (Todor Buyukliev... 11.Nov.04)

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite