lotus sametime shit

5 отговора 244 прегледа
#1

lotus sametime shit

здравейте! имам един проблем със Sametime 6.5.1 CPP Toolkit. някой занимавал ли се е сериозно с тази бозица? постнал съм си въпроса във форума на lotus: [линк]

ето и съдържанието за по-лесно:

Hello!

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!

Отговор
в отговор на desperate #2

Re: lotus sametime shit

едно небрежно въпросче - случайно да работиш в WM?

Сигнатура!
Отговор
в отговор на Questor #3

Re: lotus sametime shit

не. а, би ли ми помогнало?

Отговор
в отговор на desperate #4

Re: lotus sametime shit

не

Сигнатура!
Отговор
в отговор на desperate #5

Re: lotus sametime shit

здрасти.
по принцип навремето не можеше. предполагам че още не може. става въпрос за с++. те имат сдк на джава, с него може. само че ако програмата ти е на с++ ще се наложи да ползваш JNI, което си е достатъчен shit и без лотуския такъв

късмет. мога само да ти съчувствам

Отговор
в отговор на Rince #6

Re: lotus sametime shit

благодаря за инфото. хубаво е, че някой поне потвърди съмненията ми

следващата стъпка е да пробвам това чудо: [линк], включително да го преработя да ми върши работа, ако не стане веднага

Отговор