[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Hi Ali,
Ali Naddaf wrote:
Hello everyone.
I like to use the XMPP container of ECF to do the following: I have
two separate instances of OSGi framework running on separate networks.
I want to remotely call services of each framework from the other one
using, say, Google's jabber server (gtalk). To that effect, I will
create two gtalk accounts, one for each framework.
Right.
In the above scenario, do I still need to employ any discovery mechanism?
No, you don't.
If each framework knows about the other framework's jabber id, would
that be adequate?
Yes.
Is there a sample code (example) or a test case for this? I see some
xmpp examples in the ecf source repository but they are mostly (as
far as I can see) concerned with sending a message not calling a
remote service.
There is test code for the xmpp usage of remote services. It's for
testing the ECF remote services API usage...rather than the OSGi remote
services (which is built upon ECF remote services), but it does give
some idea of how to do remote services using XMPP. We currently don't
run these tests automatically, because we need to setup/run an xmpp
server consistently to be able to do so. Hopefully we will be able to
do this soon (run an xmpp server consistently).
The test class is:
org.eclipse.ecf.tests.provider.xmpp.remoteservice.RemoteServiceTest
This is in this test plugin: org.eclipse.ecf.tests.provider.xmpp
This plugin is in <ecf home>/tests/bundles in ECF CVS area.
Hope this helps. Please keep informed about how this is going, and I
will provide as much support as possible.
Scott