[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Thank you Scott. I have made some progress there and hopefully soon will
have a complete working example that I can share in case you would be
interested in posting that. I am sure I will have some questions on the
way but one that I ran into is the following: if I make a connection
(using container.connect(...)), and if I lose connectivity (due to
network) and gain internet connectivity again, I will not be reconnected
automatically. If I were to use the smack libraries directly to connect
to a jabber server, it would reconnect automatically so is there an
option there that I can enable this feature? If not, what is the correct
approach: should I register a listener and manually reconnect?
Thanks
Ali.
On 5/14/2010 10:16 PM, Scott Lewis wrote:
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
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev