Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] XMPP Publish/Subscribe

Hi Leen,

Leen Toelen wrote:
Hi,

is there an example of using Publish/Subscribe using an XMPP server with ECF?

There is a test class. It's in org.eclipse.ecf.tests.provider.xmpp.sharedobject.ChatRoomSOAddTest. See here to browse source:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/tests/org.eclipse.ecf.tests.provider.xmpp/src/org/eclipse/ecf/tests/provider/xmpp/sharedobject/ChatRoomSOAddTest.java?root=Technology_Project&view=log

This uses the ECF shared object API (shared object instances essentially define a pub/sub group). The current XMPP provider implements this by using the XMPP chatroom. It does *not* yet use the XMPP pubsub xmpp extension...although it certainly could (and probably should in the near future).

Note also that for the XMPP provider (xmpp chatrooms) the shared object API is used to *implement* the datashare API (IChannels...which provide a simpler pub/sub abstraction called an IChannel), so it is/should be possible to just use the datashare API rather than the shared object API if desired (the datashare API is simpler but less extensible). We don't currently have any test code for testing the use of the datashare API on the xmpp chatroom, but would welcome some if anyone is able/willing to contribute.

Thanks,

Scott




Regards,
Leen Toelen
------------------------------------------------------------------------

_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev



Back to the top