TYPED ABSTRACTIONS FOR CLIENT-SERVICE INTERACTIONS IN OSGI

Sven De Labey, Eric Steegmans

2008

Abstract

The Open Services Gateway initiative (OSGi) is a successful attempt to bridge the gap between Java and Service Oriented Computing. OSGi provides an LDAP-based query language for fine-tuning service retrieval and offers an eventing mechanism that signals changes to a service’s lifecyle to all clients depending on that service. Nonetheless, a number of challenges remain unsolved. OSGi’s service query language, for instance, bypasses important compile-time guarantees on the syntactical correctness of queries and the language works only for properties that never change during the lifetime of a service. What programmers need, however, is a statically type-checked, robust query language that takes into account dynamically evolving, volatile service characteristics. A second problem is that the lifecycle management system requires programmers to write a considerable amount of boilerplate logic for reacting to service events. This obfuscates the business logic, which in turn decreases code comprehension and increases the odds for introducings bugs when implementing client-service interactions. This paper evaluates OSGi as a platform for programming client-service interactions in Java. After focusing on a number of shortcomings of OSGi’s integrated service query language and its lifecycle management system, we propose a solution based on a programming language extension. After the conceptual definition of these new language concepts, we show how they can be transformed to regular Java code without losing interoperability with the OSGi standard.

Download


Paper Citation


in Harvard Style

De Labey S. and Steegmans E. (2008). TYPED ABSTRACTIONS FOR CLIENT-SERVICE INTERACTIONS IN OSGI . In Proceedings of the Third International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE, ISBN 978-989-8111-28-9, pages 157-166. DOI: 10.5220/0001766701570166

in Bibtex Style

@conference{enase08,
author={Sven De Labey and Eric Steegmans},
title={TYPED ABSTRACTIONS FOR CLIENT-SERVICE INTERACTIONS IN OSGI},
booktitle={Proceedings of the Third International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,},
year={2008},
pages={157-166},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0001766701570166},
isbn={978-989-8111-28-9},
}


in EndNote Style

TY - CONF
JO - Proceedings of the Third International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,
TI - TYPED ABSTRACTIONS FOR CLIENT-SERVICE INTERACTIONS IN OSGI
SN - 978-989-8111-28-9
AU - De Labey S.
AU - Steegmans E.
PY - 2008
SP - 157
EP - 166
DO - 10.5220/0001766701570166