[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ecf-dev] Consume service that has been marked as 'remote' , locally
- From: Wim Jongman <wim.jongman@xxxxxxxxx>
- Date: Sun, 24 Apr 2011 22:42:55 +0200
- Delivered-to: firstname.lastname@example.org
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Oj+2um3Na1wxJpPl2RPZCIsRTGlYMRp1jURXVjDxUATu7or/0NFSx5tr2PlJYwCEmC eRhPaUoRjtDAS//kmZpq0V8nnWGilG4wimu/ZtK6a+SHpov75l/84N3lEwgOgrRP3hoZ IspV5sXMyYzlSk/nGz45dqeHtZUBT+zOeCryw=
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)
On Sun, Apr 24, 2011 at 8:14 PM, Pradeep Fernando <pradeepfn@xxxxxxxxx>
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,
while remote service client (another JVM process) giving this as the output,
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).