[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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);
container.connect(xmppid, connectContext);

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.

Regards,
Eugen 


Am Jun 13, 2010 um 19:10  schrieb Wim Jongman:

Hi Eugen,

The host side uses DS. I have not yet blogged about this but the main bundle can be found in the same directory as the 'quote.consumer' bundle and is named o.e.e.examples.quotes

If you check-out this project, you will find an additional psf file that can be used to get the bundles that use DS to expose their services.

You can also use the 'helloworld.ds' examples as Scott pointed out. 

Give me a ping if you require more help.

Regards,

Wim 

On Jun 13, 2010, at 16:39, Eugen Reiswich <ereiswich@xxxxxxxxxxxxxx> wrote:

Hi Wim,

I checked out your example but was not able to find any service components within the bundles. I've imported the .psf files but the projects don't have DS. I've also checked out some other postings on ECF with DS (http://bryanhunt.wordpress.com/2009/06/20/remote-declarative-osgi-services/) but this example only works if client and server run on the same local subnet. 

There are some more blogs about ECF and remote services e.g. http://wiki.eclipse.org/Getting_Started_with_ECF's_OSGi_Remote_Services_Implementation but none of them describes how to create and use remote services with DS.

Hence it is still not clear for me how to use ECF remote services with DS. In my special case I try to use ECF remote services with XMPP. 

Regards,
Eugen
 

Am Jun 11, 2010 um 13:12  schrieb Wim Jongman:

Eugen,

Check out our latest article. It is all DS! I will blog about the server/host part this weekend. Be sure to check out the client and give it a spin:

http://tiny.cc/remotefun

Regards,

Wim

On Fri, Jun 11, 2010 at 9:30 AM, Eugen Reiswich <ereiswich@xxxxxxxxxxxxxx> wrote:
> Hi Scott,
>
> I would like to hear about (remote) declarative services (DS) with ECF.
>
> Regards,
> Eugen
>
> Am Jun 11, 2010 um 5:14  schrieb Scott Lewis:
>
>> Really nice article Wim.  Congrats...and many thanks!
>>
>> I'll try to add next week to the do-it-yourself-marketing-of-ECF remote services.  Any suggestions from people about about a specific topic that people might like to hear some about?
>>
>> Scott
>>
>>
>> Wim Jongman wrote:
>>> Hi,
>>>
>>> I have blogged about ecf and zoodiscovery:http://tiny.cc/remotefun
>>>
>>> Regards,
>>>
>>> Wim
>>> _______________________________________________
>>> ecf-dev mailing list
>>> ecf-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/ecf-dev
>>>
>>
>> _______________________________________________
>> ecf-dev mailing list
>> ecf-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/ecf-dev
>
> _______________________________________________
> ecf-dev mailing list
> ecf-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ecf-dev
>

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

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