|Re: [ecf-dev] Fun with remote services part 1|
|Hi Scott, hi Wim,|
I've also checked out the hello.ds examples and tried to understand how this example works. As I understand the host has to provide specific server properties within the service component. And as far as I understand these properties will trigger ECF to make a service remotely available (I didn't really get what exactly happens here). In my XMPP case I've changed the example to:
<property name="service.exported.interfaces" type="String" value="*"/>
<property name="service.exported.configs" type="String" value="ecf.xmpp.smack"/>
<property name="org.eclipse.ecf.containerFactoryArgs" type="String" value="jabber-server.de"/>
If I got you right Scott I do no longer need to create an instance of IContainer like I did before:
IContainer container = ContainerFactory.getDefault().createContainer(protocol);
XMPPID xmppid = new XMPPID(container.getConnectNamespace(), userName + "@" + server);
IConnectContext connectContext = ConnectContextFactory.createUsernamePasswordConnectContext(userName, password);
But how do I now provide with DS username and password in order to be able to connect to a server?
On the client side the hello.ds.consumer bundle only describes that it requires an IHello service. But I was not able to find out how the service is configured: server url, username, password.
It would be grate if you could help me solving these problems.
Am Jun 13, 2010 um 19:10 schrieb Wim Jongman: