[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.ecf] Starting a Chat Use Case

It would help me if we identified a few use cases and worked them through using the API. The simplest is probably starting a chat. We can worry later about actually using the chat. For now, I just want to understand how it all gets started.

Normally, I think of chat as having three main steps to get it going:

  1. One user initiates a chat session.
  2. Somehow another user becomes informed of the existence of the chat
     (the invite)
  3. The second user joins the chat.

For step 1), I assume that I create a SharedContainer to correspond to the chat session. Then I create a SharedObject that will be used to accomplish the actual communication.
For step 2), I assume I must send the ID of the SharedContainer to the other user. I don't believe the ECF provides an explicit way to do this, but one could be invented on top of it.
For step 3), I assume the second user creates a SharedContainer of the appropriate type (how do they know the type?) and Join the group identified by the ID sent to them. Then somehow, they find the SharedObject.


Do I have this right, as far as it goes? As you can see, I am a little unclear on some of the specifics, particularly on how the SharedObjects come to exist on the second machine. Are they brought into existence upon joining the group? Does the second user learn about them via an event?

I would find it helpful to see the code for this use case.