| Hi Pradeep and Wim, 
 One thing to add to what Wim says:
 
 According to the Remote Services specification, all remote service
    proxies will have the  'service.imported' service property set to
    some non-null value.
 
 So in your filter, to find all proxies/remote services, you can look
    for the 'service.imported' property being set.
 
 In ECF's case, the value of 'service.imported' is set to be an
    instance of IRemoteService [1].
 
 Scott
 
 [1]
http://download.eclipse.org/rt/ecf/3.5/javadoc/org/eclipse/ecf/remoteservice/IRemoteService.html
 
 On 4/24/2011 1:42 PM, Wim Jongman wrote:
 Hi Pradeep,
      
 
 
        In short, It depends on how you consume the service. 
 If you use a service tracker or a service listener you can
        specify a filter or query the service properties when a service
        comes in. 
        If you ask the service registry you can specify the properties
        you want or don't want. If you use the referenced service in the component.xml then
        you can specify the filter in the "target" field. (see 112.3.4
        of the forementioned manual) 
 Best regards, 
 Wim On Sun, Apr 24, 2011 at 8:14 PM,
          Pradeep Fernando <pradeepfn@xxxxxxxxx>  wrote:
           Hi all,
 I did a small test related to above query. When i run the
            client
 within the same JVM process, that exports the interface as
            remote
 services, I got this object reference through ds,
 
 IHello=org.eclipse.ecf.examples.internal.remoteservices.hello.ds.host.HelloComponent@40e99ce5
 
 while remote service client (another JVM process) giving
            this as the output,
 
 IHello=org.eclipse.ecf.examples.remoteservices.hello.IHello.proxy@xxxxxxxxxxxxxxx.remoteservice.RemoteServiceID[containerID=StringID[ecftcp://localhost:3787/server];containerRelativeID=1]
 
 So it is safer assume that, zeroconf does not affects my
            default
 behaviour. So that solves my first question I guess. :)
 
 but I cant figure the answer for my second question, how to
            address
 the exact service through DS when you have both remote and
            local
 services registered under same interface (Name).
 
 thanks,
 
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev 
 |