[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ecf-dev] Unget remote OSGi services
|
Hi Scott,
I'm using the XMPP protocol.
BTW, I'm going to be taking some time off, so I will not be as
responsive to this list or the newsgroup for a little while.
Scott
OK, good to know that. I think now that my problems rise I'll have to
bother Markus in Hamburg :)
Regards,
Eugen
Am 15.07.2008 um 16:45 schrieb Scott Lewis:
Hi Eugen,
Which provider/protocol is this using? ECF generic or XMPP or some
other?
BTW, I'm going to be taking some time off, so I will not be as
responsive to this list or the newsgroup for a little while.
Scott
Eugen Reiswich wrote:
Hi folks,
I have some problems to unget remote OSGi services over ECF. When
I close my application I perform an unget service method call:
public void ungetRemoteService(ID[] idFilter, String serviceName,
String filter) throws ECFException, InvalidSyntaxException {
IRemoteServiceContainerAdapter remoteServiceContainerAdapter =
(IRemoteServiceContainerAdapter) this.containter
.getAdapter(IRemoteServiceContainerAdapter.class);
IRemoteServiceReference[] refs = remoteServiceContainerAdapter
.getRemoteServiceReferences(idFilter, serviceName, filter);
if (refs != null) {
// unget the remote service
for (int serviceNumber = 0; serviceNumber < refs.length;
serviceNumber++) {
remoteServiceContainerAdapter
.ungetRemoteService(refs[serviceNumber]);
}
}
}
But unfortunatelly this doesn't work because next time I log in
one additional service is available. So after 10 logins I've got
10 equal services registered for the same client. Is this again
the containerID and rosterID problem? I mean while retrieving the
IRemoteServiceReferences:
IRemoteServiceReference[] refs = remoteServiceContainerAdapter
.getRemoteServiceReferences(idFilter, serviceName, filter);
I provide as filterIDs an array with roster IDs. Could this be the
source of the problem?
Regards,
Eugen
---------------------------------------------------------------------
---
_______________________________________________
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